/** * Constructor */ public function __construct() { // Setup some folder variables $meta_dir = '/core/meta/'; // Include Config file(s) require_once get_template_directory() . $meta_dir . 'config.php'; // Instantiate meta config class $meta_config = new Layers_Meta_Config(); // Get post meta $this->custom_meta = $meta_config->meta_data(); }
/** * Constructor */ public function __construct() { // Setup some folder variables $meta_dir = '/core/meta/'; // Include Config file(s) require_once get_template_directory() . $meta_dir . 'config.php'; // Instantiate meta config class $meta_config = new Layers_Meta_Config(); // Get post meta $this->custom_meta = $meta_config->meta_data(); // Enqueue Styles add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'), 50); add_action('admin_enqueue_scripts', array($this, 'admin_print_styles'), 50); // Page Builder Button add_action('edit_form_after_title', array($this, 'page_builder_button')); add_action('wp_ajax_update_page_builder_meta', array($this, 'update_page_builder_meta')); // add_filter( 'layers_pointer_settings' , array( $this , 'page_builder_button_pointer' ) ); add_action('page_row_actions', array($this, 'inline_page_builder_button'), 10, 2); // Custom Fields add_action('admin_menu', array($this, 'register_post_meta')); add_action('save_post', array($this, 'save_post_meta')); add_action('publish_post', array($this, 'save_post_meta')); }