/** * Constructor. * * @access public */ public function __construct() { // actions // add_action( 'psts_settings_page', array( $this, 'renderModuleSettings' ) ); add_action('post_submitbox_misc_actions', array($this, 'renderLimitsInformation')); add_action('transition_post_status', array($this, 'checkTransitionPostStatus'), 10, 3); // filters add_filter('psts_settings_filter', array($this, 'saveModuleSettings'), 10, 2); add_filter('wp_insert_post_data', array($this, 'checkPostStatusBeforeSave'), 10, 2); //Admin Notice If limit exceeded add_action('admin_notices', array(&$this, 'message')); self::$user_label = __('Post Throttling', 'psts'); self::$user_description = __('Limit Post publishing rate.', 'psts'); }
/** * 'Post/Page Throttling' * * @return string */ public static function render_tab_throttling() { ProSites_Helper_Settings::settings_header(ProSites_Helper_Tabs_Settings::get_active_tab()); $module = new ProSites_Module_PostThrottling(); echo $module->renderModuleSettings(); }