[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Subscribers.php
<?php /******************************************************************************* * Copyright (c) 2019, Code Atlantic LLC ******************************************************************************/ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Class PUM_Admin_Subscribers */ class PUM_Admin_Subscribers { /** * */ public static function init() { add_action( 'admin_menu', [ __CLASS__, 'after_page_registration' ], 11 ); add_filter( 'set-screen-option', [ __CLASS__, 'set_option' ], 10, 3 ); } /** * Render settings page with tabs. */ public static function page() { self::list_table()->prepare_items(); ?> <div class="wrap"> <h1><?php _e( 'Subscribers', 'popup-maker' ); ?></h1> <div id="pum-subscribers"> <div id="pum-subscribers-post-body"> <form id="pum-subscribers-list-form" method="get"> <input type="hidden" name="page" value="<?php echo esc_attr( $_REQUEST['page'] ); ?>"/> <input type="hidden" name="post_type" value="<?php echo esc_attr( $_REQUEST['post_type'] ); ?>"/> <?php self::list_table()->search_box( __( 'Find', 'popup-maker' ), 'pum-subscriber-find' ); self::list_table()->display(); ?> </form> </div> </div> </div> <?php } /** * @return PUM_Admin_Subscribers_Table */ public static function list_table() { static $list_table; if ( ! isset( $list_table ) ) { $list_table = new PUM_Admin_Subscribers_Table(); } return $list_table; } public static function after_page_registration() { add_action( 'load-' . PUM_Admin_Pages::$pages['subscribers'], [ 'PUM_Admin_Subscribers', 'load_user_list_table_screen_options' ] ); } public static function load_user_list_table_screen_options() { add_screen_option( 'per_page', [ 'label' => __( 'Subscribers Per Page', 'popup-maker' ), 'default' => 20, 'option' => 'pum_subscribers_per_page', ] ); /* * Instantiate the User List Table. Creating an instance here will allow the core WP_List_Table class to automatically * load the table columns in the screen options panel */ self::list_table(); } /** * Force WP to save the option. * * @param $status * @param $option * @param $value * * @return mixed */ public static function set_option( $status, $option, $value ) { if ( 'pum_subscribers_per_page' == $option ) { return $value; } return $status; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server.dijitaldukkanim.com.tr
Server IP: 104.247.168.220
PHP Version: 8.1.33
Server Software: Apache
System: Linux server.dijitaldukkanim.com.tr 4.18.0-553.105.1.el8_10.x86_64 #1 SMP Tue Feb 17 05:17:39 EST 2026 x86_64
HDD Total: 492.3 GB
HDD Free: 180.61 GB
Domains on IP: N/A (Requires external lookup)
System Features