/** * Filters/actions to hook on the admin post.php page. * * @since 1.7 * */ public static function register_post_page_hooks() { // Load textdomain load_plugin_textdomain('admin-post-navigation', false, basename(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'lang'); // Set translatable strings self::$prev_text = __('← Previous', 'admin-post-navigation'); self::$next_text = __('Next →', 'admin-post-navigation'); // Register hooks add_action('admin_enqueue_scripts', array(__CLASS__, 'add_css')); add_action('admin_print_footer_scripts', array(__CLASS__, 'add_js')); add_action('do_meta_boxes', array(__CLASS__, 'do_meta_box'), 10, 3); }
/** * Filters/actions to hook on the admin post.php page. * * @since 1.7 */ public static function register_post_page_hooks() { // Load textdomain. load_plugin_textdomain('admin-post-navigation'); // Set translatable strings. self::$prev_text = apply_filters('c2c_admin_post_navigation_prev_text', __('← Previous', 'admin-post-navigation')); self::$next_text = apply_filters('c2c_admin_post_navigation_next_text', __('Next →', 'admin-post-navigation')); // Register hooks. add_action('admin_enqueue_scripts', array(__CLASS__, 'admin_enqueue_scripts_and_styles')); add_action('do_meta_boxes', array(__CLASS__, 'do_meta_box'), 10, 3); }