PUM_Admin_Popups::init()
Hook the initialize method to the WP init action.
Description Description
Source Source
File: classes/Admin/Popups.php
public static function init() { // Adds ID to top of popup editor. add_action( 'edit_form_top', array( __CLASS__, 'add_popup_id' ) ); // Change title to popup name. add_filter( 'enter_title_here', array( __CLASS__, '_default_title' ) ); // Add popup title field. add_action( 'edit_form_advanced', array( __CLASS__, 'title_meta_field' ) ); // Add Contextual help to post_name field. add_action( 'edit_form_before_permalink', array( __CLASS__, 'popup_post_title_contextual_message' ) ); // Register Metaboxes. add_action( 'add_meta_boxes', array( __CLASS__, 'meta_box' ) ); // Process meta saving. add_action( 'save_post', array( __CLASS__, 'save' ), 10, 2 ); // Set the slug properly on save. add_filter( 'wp_insert_post_data', array( __CLASS__, 'set_slug' ), 99, 2 ); // Dashboard columns & filters. add_filter( 'manage_edit-popup_columns', array( __CLASS__, 'dashboard_columns' ) ); add_action( 'manage_posts_custom_column', array( __CLASS__, 'render_columns' ), 10, 2 ); add_filter( 'manage_edit-popup_sortable_columns', array( __CLASS__, 'sortable_columns' ) ); add_filter( 'default_hidden_columns', array( __CLASS__, 'hide_columns' ), 10, 2 ); add_action( 'load-edit.php', array( __CLASS__, 'load' ), 9999 ); add_action( 'restrict_manage_posts', array( __CLASS__, 'add_popup_filters' ), 100 ); add_filter( 'post_row_actions', array( __CLASS__, 'add_id_row_actions' ), 2, 100 ); add_action( 'post_submitbox_misc_actions', array( __CLASS__, 'add_enabled_toggle_editor' ), 10, 1 ); }
Expand full source code Collapse full source code View on Trac