mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-19 22:43:24 +09:00
add taxonomies class
sets up featured image for taxonomies. not applied to output yet.
This commit is contained in:
@@ -16,12 +16,13 @@
|
||||
*/
|
||||
class Display_Featured_Image_Genesis {
|
||||
|
||||
function __construct( $common, $description, $output, $rss, $settings ) {
|
||||
$this->common = $common;
|
||||
$this->archive = $description;
|
||||
$this->output = $output;
|
||||
$this->rss = $rss;
|
||||
$this->settings = $settings;
|
||||
function __construct( $common, $description, $output, $rss, $settings, $taxonomies ) {
|
||||
$this->common = $common;
|
||||
$this->archive = $description;
|
||||
$this->output = $output;
|
||||
$this->rss = $rss;
|
||||
$this->settings = $settings;
|
||||
$this->taxonomies = $taxonomies;
|
||||
}
|
||||
|
||||
public function run() {
|
||||
@@ -33,6 +34,7 @@ class Display_Featured_Image_Genesis {
|
||||
|
||||
add_action( 'init', array( $this, 'add_plugin_supports' ) );
|
||||
add_action( 'admin_init', array( $this, 'check_settings' ) );
|
||||
add_action( 'admin_init', array( $this->taxonomies, 'set_taxonomy_meta' ), 10, 2 );
|
||||
add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
|
||||
add_action( 'admin_menu', array( $this->settings, 'do_submenu_page' ) );
|
||||
add_action( 'get_header', array( $this->output, 'manage_output' ) );
|
||||
|
||||
Reference in New Issue
Block a user