/** * Constructor */ public function __construct() { global $pf; $this->feed_type = 'opml'; parent::start(); add_action('admin_init', array($this, 'register_settings')); }
function __construct() { parent::start(); add_action('pf_modal_comments', array($this, 'the_comment_box')); //add_action( 'admin_enqueue_scripts', array( $this, 'add_admin_scripts' ) ); add_action('wp_ajax_editflow_ajax_insert_comment', array($this, 'ajax_insert_comment')); add_action('pf_comment_action_button', array($this, 'show_comment_count_button')); add_action('pf_comment_action_modal', array($this, 'show_comment_modal')); add_filter('pf_setup_admin_rights', array($this, 'control_menu_access')); }
/** * Constructor */ public function __construct() { $this->feed_type = 'rss'; parent::start(); //self::check_nonce = wp_create_nonce('retrieve-pressforward'); add_action('admin_init', array($this, 'register_settings')); if (is_admin()) { add_action('wp_ajax_nopriv_remove_a_feed', array($this, 'remove_a_feed')); add_action('wp_ajax_remove_a_feed', array($this, 'remove_a_feed')); } }
/** * Constructor */ public function __construct() { parent::start(); add_action('init', array($this, 'request_feed')); //self::check_nonce = wp_create_nonce('retrieve-pressforward'); }
/** * Register the admin menu items * * The parent class will take care of registering them */ function setup_admin_menus($admin_menus) { $admin_menus = array(); $admin_menus[] = array('page_title' => __('View Log', 'pf'), 'menu_title' => __('View Log', 'pf'), 'cap' => get_option('pf_menu_log_access', pf_get_defining_capability_by_role('administrator')), 'slug' => 'pf-debugger', 'callback' => array($this, 'admin_menu_callback')); parent::setup_admin_menus($admin_menus); }
/** * Constructor */ public function __construct() { parent::start(); add_action('wp_ajax_refresh_ab_feeds', array($this, 'refresh_ab_feeds_callback')); add_action('wp_ajax_finish_ab_feeds', array($this, 'finish_ab_feeds_callback')); }
/** * Register the admin menu items * * The parent class will take care of registering them */ function setup_admin_menus($admin_menus) { $admin_menus = array(); $admin_menus[] = array('page_title' => __('Foo', 'pf'), 'menu_title' => __('Foo', 'pf'), 'cap' => 'edit_posts', 'slug' => 'pf-foo', 'callback' => array($this, 'admin_menu_callback')); parent::setup_admin_menus($admin_menus); }
/** * Register the admin menu items * * The parent class will take care of registering them */ function setup_admin_menus($admin_menus) { $admin_menus = array(); $admin_menus[] = array('page_title' => __('Internal Commenting', 'pf'), 'menu_title' => __('Internal Commenting', 'pf'), 'cap' => 'manage_options', 'slug' => 'pf-comments', 'callback' => array($this, 'admin_menu_callback')); parent::setup_admin_menus($admin_menus); }