public function __construct() { parent::__construct(); if (isset($_POST['update_ninja_forms_settings'])) { $this->update_settings(); } }
public function __construct() { parent::__construct(); if (isset($_POST['update_ninja_forms_settings'])) { add_action('admin_init', array($this, 'update_settings')); } }
public function __construct() { add_action('plugins_loaded', array($this, 'import_form_listener')); add_action('plugins_loaded', array($this, 'export_form_listener')); add_action('plugins_loaded', array($this, 'import_fields_listener')); add_action('plugins_loaded', array($this, 'export_fields_listener')); add_filter('ninja_forms_before_import_fields', array($this, 'import_fields_backwards_compatibility')); parent::__construct(); }
public function __construct() { if (!defined('NF_DEV') || !NF_DEV) { return; } parent::__construct(); // Reset Menu Slug $this->menu_slug = '#'; }
public function __construct() { if (!defined('NF_DEV') || !NF_DEV) { return; } parent::__construct(); if (isset($_GET['page']) && 'nf-mock-data' == $_GET['page']) { add_action('admin_init', array($this, 'mock_and_redirect')); } }
/** * Constructor */ public function __construct() { parent::__construct(); add_filter('manage_nf_sub_posts_columns', array($this, 'change_columns')); add_action('manage_posts_custom_column', array($this, 'custom_columns'), 10, 2); add_filter('months_dropdown_results', array($this, 'remove_filter_show_all_dates'), 9999); add_action('restrict_manage_posts', array($this, 'add_filters')); add_filter('parse_query', array($this, 'table_filter')); add_filter('posts_clauses', array($this, 'search'), 20, 1); add_filter('bulk_actions-edit-nf_sub', array($this, 'remove_bulk_edit')); add_action('admin_footer-edit.php', array($this, 'bulk_admin_footer')); add_action('load-edit.php', array($this, 'export_listen')); add_action('admin_head', array($this, 'hide_page_title_action')); }
public function __construct() { parent::__construct(); }