Esempio n. 1
0
        public static function validate_ltp_theme_options($theme_options)
        {
            $theme_options["debug_redirect"] = isset($theme_options["debug_redirect"]) ? 1 : 0;
            $theme_options["debug_ssl"] = isset($theme_options["debug_ssl"]) ? 1 : 0;
            return $theme_options;
        }
        /**
         * get all options
         */
        public static function get_options()
        {
            /* get options from wp options */
            return get_option('ltp_theme_options');
        }
    }
    ltp_options::register();
}
if (!class_exists('WP_List_Table')) {
    require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
}
/**
 * class to extend WP_List_Table to display WPP users
 */
class ltp_WPP_List_Table extends WP_List_Table
{
    function __construct()
    {
        parent::__construct(array('singular' => 'WPP User', 'plural' => 'WPP Users', 'ajax' => false));
    }
    function no_items()
    {