PHP Class MediaPass_Plugin, vip-mu-plugins-public

Show file Open project: Automattic/vip-mu-plugins-public Class Usage Examples

Public Properties

Property Type Description
$auth_login_url
$auth_register_url

Public Methods

Method Description
__construct ( )
add_admin_panel ( )
add_content_teaser ( $content )
add_edit_shortcodes ( $content )
add_editor_buttons ( $buttons )
add_editor_plugins ( )
add_meta_to_editor ( )
add_save_shortcodes ( $content )
delete_all_options ( ) Clear the options database of all data.
has_premium_meta ( $the_post )
init ( )
init_for_admin ( )
init_plugin_actions ( $links, $file ) Function to add Settings Link on Plugin Page
menu_account_info ( )
menu_benefits ( )
menu_deauth ( )
menu_default ( )
menu_ecpm_floor ( )
menu_faqs_tc ( )
menu_metered ( )
menu_network ( )
menu_placement ( )
menu_price_points ( )
menu_reporting ( )
menu_signup ( )
nonce_for ( $for )
print_access_denied_message ( )
print_deauthed_message ( )
print_error_message ( $error_msg )
print_init_quicktags ( )
print_meta_section ( )
print_mismatch_error ( )
remove_from_url_tab ( $tabs ) Remove FROM URL in media library in benefits:

Private Methods

Method Description
check_mp_match ( ) check if installed domain matches the user account domain
check_nonce ( $for )
enqueue_scripts_for_admin ( )
get_publisher_data ( )
has_publisher_data ( )
init_api_strings ( )
init_editor_customizations ( )
is_valid_http_post_action ( $for )
is_vip ( )
register_scripts_for_admin ( )
render_or_error ( $data, $success )
set_site_identifier_options ( )
wp2_trim_excerpt ( $text )

Method Details

__construct() public method

public __construct ( )

add_admin_panel() public method

public add_admin_panel ( )

add_content_teaser() public method

public add_content_teaser ( $content )

add_edit_shortcodes() public method

public add_edit_shortcodes ( $content )

add_editor_buttons() public method

public add_editor_buttons ( $buttons )

add_editor_plugins() public method

public add_editor_plugins ( )

add_meta_to_editor() public method

public add_meta_to_editor ( )

add_save_shortcodes() public method

public add_save_shortcodes ( $content )

delete_all_options() public static method

Generally for use during uninstall
public static delete_all_options ( )

has_premium_meta() public method

public has_premium_meta ( $the_post )

init() public method

public init ( )

init_for_admin() public method

public init_for_admin ( )

init_plugin_actions() public method

Function to add Settings Link on Plugin Page
public init_plugin_actions ( $links, $file )

menu_account_info() public method

public menu_account_info ( )

menu_benefits() public method

public menu_benefits ( )

menu_deauth() public method

public menu_deauth ( )

menu_default() public method

public menu_default ( )

menu_ecpm_floor() public method

public menu_ecpm_floor ( )

menu_faqs_tc() public method

public menu_faqs_tc ( )

menu_metered() public method

public menu_metered ( )

menu_network() public method

public menu_network ( )

menu_placement() public method

public menu_placement ( )

menu_price_points() public method

public menu_price_points ( )

menu_reporting() public method

public menu_reporting ( )

menu_signup() public method

public menu_signup ( )

nonce_for() public static method

public static nonce_for ( $for )

print_access_denied_message() public method

print_deauthed_message() public method

print_error_message() public method

public print_error_message ( $error_msg )

print_init_quicktags() public method

print_meta_section() public method

public print_meta_section ( )

print_mismatch_error() public method

remove_from_url_tab() public method

Remove FROM URL in media library in benefits:
public remove_from_url_tab ( $tabs )

Property Details

$auth_login_url public static property

public static $auth_login_url

$auth_register_url public static property

public static $auth_register_url