PHP Класс VaultPress, vip-mu-plugins-public

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$auto_register_option
$db_version
$option_name
$plugin_version

Открытые методы

Метод Описание
__construct ( )
_fix_ixr_null_to_string ( &$args )
activate ( $network_wide )
activated_notice ( ) show message after activation
add_admin_actions_and_filters ( )
add_global_actions_and_filters ( )
add_js_token ( )
add_listener_actions_and_filters ( )
add_ping ( $type, $data, $hook = null )
add_to_jetpack_options_whitelist ( array $options ) : array Add the VaultPress options to the Jetpack options management whitelist.
add_vp_required_filters ( )
add_woocommerce_actions ( )
admin_head ( )
admin_init ( )
admin_menu ( )
ai_ping_count ( )
ai_ping_get ( $num = 1, $order = 'ASC' )
ai_ping_insert ( $value )
ai_ping_next ( ) : integer | false Use an option ID to ensure a unique ping ID for the site.
authenticate ( $user, $username, $password )
block_change_handler ( $table, $query )
can_use_openssl ( )
check_connection ( $force_check = false )
check_firewall ( )
clear_connection ( )
comment_action_handler ( $comment_id ) Handle Notifying VaultPress of Comment Activity
commentmeta_insert_handler ( $meta_id, $comment_id = null ) Handle Notifying VaultPress of Commentmeta Changes
commentmeta_modification_handler ( $meta_id, $object_id, $meta_key, $meta_value )
connect_notice ( ) show message if plugin is activated but not connected to VaultPress
contact_service ( $action, $args = [] )
deactivate ( )
delete_option ( $key )
do_c_block_firewall ( )
do_pings ( )
error_notice ( )
generic_change_handler ( $table, $key )
get_config ( $key )
get_jetpack_email ( )
get_last_table ( ) Emulate $wpdb->last_table
get_login_tokens ( )
get_messages ( $force_reload = false ) get any messages from the VP servers
get_option ( $key )
get_option_name_ignore ( $return_defaults = false ) Option name patterns to ignore
get_post_meta_name_ignore ( $return_defaults = false ) post meta name patterns to ignore
get_should_ignore_files ( $return_defaults = false ) file name patterns to ignore
get_table_from_query ( $q ) Emulate hyperdb::get_table_from_query()
init ( )
ip_in_cidr ( $ip, $cidr )
ip_in_cidrs ( $ip, $cidrs )
is_localhost ( )
is_main_site ( )
is_multisite ( )
is_registered ( )
is_write_query ( $q ) Emulate hyperdb::is_write_query()
link_action_handler ( $link_id ) Handle Notifying VaultPress of Link Changes
load_first ( $value )
load_menu ( )
option_handler ( $option_name ) means that we do not need to resolve an id like we would for, say, a post.
parse_request ( $wp )
plugin_action_handler ( $plugin = '' ) Handle Notifying VaultPress of Plugin Activation/Deactivation
post_action_handler ( $post_id ) Handle Notifying VaultPress of Post Changes
postmeta_action_handler ( $meta_id, $post_id = null, $meta_key = null ) Handle Notifying VaultPress of PostMeta changes via old school cherypicked hooks
postmeta_insert_handler ( $meta_id, $post_id, $meta_key, $meta_value = '' ) Handle Notifying VaultPress of PostMeta changes via newfangled metadata functions
postmeta_modification_handler ( $meta_id, $object_id, $meta_key, $meta_value )
record_table ( $table ) Emulate $wpdb->last_table
register ( $registration_key )
register_via_jetpack ( )
request_firewall_update ( $external_services = false )
reset_pings ( )
resolve_content_dir ( )
resolve_upload_path ( )
response ( $response, $raw = false )
server_url ( )
set_object_terms_handler ( $object_id, $terms, $tt_ids ) Handle Notifying VaultPress of term_relationship changes
sign_string ( $string, $secret, $salt )
site_url ( )
styles ( )
sync_jetpack_options ( ) Sync the VaultPress options to WordPress.com if the Jetpack plugin is active.
table_notify_columns ( $table )
term_handler ( $term_id, $tt_id = null ) Handle Notifying VaultPress of term changes
term_relationship_handler ( $object_id, $term_id ) Handle Notifying VaultPress of term_relationship changes
term_relationships_handler ( $object_id, $term_ids ) Handle Notifying VaultPress of term_relationship changes
term_taxonomies_handler ( $tt_ids ) Handle Notifying VaultPress of term_taxonomy changes
term_taxonomy_handler ( $tt_id ) Handle Notifying VaultPress of term_taxonomy changes
theme_action_handler ( $theme ) Handle Notifying VaultPress of Theme Switches
toolbar ( $wp_admin_bar ) display a security threat notice if one exists
ui ( )
ui_fatal_error ( )
ui_load ( )
ui_main ( )
ui_message ( $message, $type = 'notice', $heading = '' )
ui_register ( )
update_firewall ( )
update_option ( $key, $value )
update_options ( )
update_plan_settings ( $message ) Update local cache of VP plan settings, based on a ping or connection test result
updated_auto_register_option ( mixed $old_value, mixed $value ) When the VaultPress auto-register option is updated, run the registration call.
upgrade ( )
upload_handler ( $file ) Handle Notifying VaultPress of Upload Activity
userid_action_handler ( $user_or_id ) Handle Notifying VaultPress of User Edits
usermeta_action_handler ( $umeta_id, $user_id, $meta_key, $meta_value = '' ) Handle Notifying VaultPress of UserMeta changes
validate_api_signature ( )
validate_ip_address ( $rxs )
verify_table ( $table )
woocommerce_attribute_handler ( $id )
woocommerce_order_item_handler ( $id )
woocommerce_order_item_meta_handler ( $id )
woocommerce_tax_rate_handler ( $id ) WooCommerce notifications

Описание методов

__construct() публичный Метод

public __construct ( )

_fix_ixr_null_to_string() публичный Метод

public _fix_ixr_null_to_string ( &$args )

activate() публичный Метод

public activate ( $network_wide )

activated_notice() публичный Метод

show message after activation
public activated_notice ( )

add_admin_actions_and_filters() публичный Метод

add_global_actions_and_filters() публичный Метод

add_js_token() публичный Метод

public add_js_token ( )

add_listener_actions_and_filters() публичный Метод

add_ping() публичный Метод

public add_ping ( $type, $data, $hook = null )

add_to_jetpack_options_whitelist() публичный Метод

Allows Jetpack to register VaultPress options automatically.
public add_to_jetpack_options_whitelist ( array $options ) : array
$options array The list of whitelisted option names.
Результат array The updated whitelist

add_vp_required_filters() публичный Метод

add_woocommerce_actions() публичный Метод

admin_head() публичный Метод

public admin_head ( )

admin_init() публичный Метод

public admin_init ( )

admin_menu() публичный Метод

public admin_menu ( )

ai_ping_count() публичный Метод

public ai_ping_count ( )

ai_ping_get() публичный Метод

public ai_ping_get ( $num = 1, $order = 'ASC' )

ai_ping_insert() публичный Метод

public ai_ping_insert ( $value )

ai_ping_next() публичный Метод

Use an option ID to ensure a unique ping ID for the site.
public ai_ping_next ( ) : integer | false
Результат integer | false The new ping number. False, if there was an error.

authenticate() публичный Метод

public authenticate ( $user, $username, $password )

block_change_handler() публичный Метод

public block_change_handler ( $table, $query )

can_use_openssl() публичный Метод

public can_use_openssl ( )

check_connection() публичный Метод

public check_connection ( $force_check = false )

check_firewall() публичный Метод

public check_firewall ( )

clear_connection() публичный Метод

public clear_connection ( )

comment_action_handler() публичный Метод

Handle Notifying VaultPress of Comment Activity
public comment_action_handler ( $comment_id )

commentmeta_insert_handler() публичный Метод

Handle Notifying VaultPress of Commentmeta Changes
public commentmeta_insert_handler ( $meta_id, $comment_id = null )

commentmeta_modification_handler() публичный Метод

public commentmeta_modification_handler ( $meta_id, $object_id, $meta_key, $meta_value )

connect_notice() публичный Метод

show message if plugin is activated but not connected to VaultPress
public connect_notice ( )

contact_service() публичный Метод

public contact_service ( $action, $args = [] )

deactivate() публичный Метод

public deactivate ( )

delete_option() публичный Метод

public delete_option ( $key )

do_c_block_firewall() публичный Метод

public do_c_block_firewall ( )

do_pings() публичный Метод

public do_pings ( )

error_notice() публичный Метод

public error_notice ( )

generic_change_handler() публичный Метод

public generic_change_handler ( $table, $key )

get_config() публичный Метод

public get_config ( $key )

get_jetpack_email() публичный Метод

public get_jetpack_email ( )

get_last_table() публичный Метод

Emulate $wpdb->last_table
public get_last_table ( )

get_login_tokens() публичный Метод

public get_login_tokens ( )

get_messages() публичный Метод

get any messages from the VP servers
public get_messages ( $force_reload = false )

get_option() публичный Метод

public get_option ( $key )

get_option_name_ignore() публичный Метод

Option name patterns to ignore
public get_option_name_ignore ( $return_defaults = false )

get_post_meta_name_ignore() публичный Метод

post meta name patterns to ignore
public get_post_meta_name_ignore ( $return_defaults = false )

get_should_ignore_files() публичный Метод

file name patterns to ignore
public get_should_ignore_files ( $return_defaults = false )

get_table_from_query() публичный Метод

Emulate hyperdb::get_table_from_query()
public get_table_from_query ( $q )

init() статический публичный Метод

static public init ( )

ip_in_cidr() публичный Метод

public ip_in_cidr ( $ip, $cidr )

ip_in_cidrs() публичный Метод

public ip_in_cidrs ( $ip, $cidrs )

is_localhost() публичный Метод

public is_localhost ( )

is_main_site() публичный Метод

public is_main_site ( )

is_multisite() публичный Метод

public is_multisite ( )

is_registered() публичный Метод

public is_registered ( )

is_write_query() публичный Метод

Emulate hyperdb::is_write_query()
public is_write_query ( $q )

load_first() публичный Метод

public load_first ( $value )

load_menu() публичный Метод

public load_menu ( )

option_handler() публичный Метод

means that we do not need to resolve an id like we would for, say, a post.
public option_handler ( $option_name )

parse_request() публичный Метод

public parse_request ( $wp )

plugin_action_handler() публичный Метод

Handle Notifying VaultPress of Plugin Activation/Deactivation
public plugin_action_handler ( $plugin = '' )

post_action_handler() публичный Метод

Handle Notifying VaultPress of Post Changes
public post_action_handler ( $post_id )

postmeta_action_handler() публичный Метод

Handle Notifying VaultPress of PostMeta changes via old school cherypicked hooks
public postmeta_action_handler ( $meta_id, $post_id = null, $meta_key = null )

postmeta_insert_handler() публичный Метод

Handle Notifying VaultPress of PostMeta changes via newfangled metadata functions
public postmeta_insert_handler ( $meta_id, $post_id, $meta_key, $meta_value = '' )

postmeta_modification_handler() публичный Метод

public postmeta_modification_handler ( $meta_id, $object_id, $meta_key, $meta_value )

record_table() публичный Метод

Emulate $wpdb->last_table
public record_table ( $table )

register() статический публичный Метод

static public register ( $registration_key )

register_via_jetpack() публичный Метод

request_firewall_update() публичный Метод

public request_firewall_update ( $external_services = false )

reset_pings() публичный Метод

public reset_pings ( )

resolve_content_dir() публичный Метод

public resolve_content_dir ( )

resolve_upload_path() публичный Метод

public resolve_upload_path ( )

response() публичный Метод

public response ( $response, $raw = false )

server_url() публичный Метод

public server_url ( )

set_object_terms_handler() публичный Метод

Handle Notifying VaultPress of term_relationship changes
public set_object_terms_handler ( $object_id, $terms, $tt_ids )

sign_string() публичный Метод

public sign_string ( $string, $secret, $salt )

site_url() публичный Метод

public site_url ( )

styles() публичный Метод

public styles ( )

sync_jetpack_options() публичный Метод

Sync the VaultPress options to WordPress.com if the Jetpack plugin is active.

table_notify_columns() публичный Метод

public table_notify_columns ( $table )

term_handler() публичный Метод

Handle Notifying VaultPress of term changes
public term_handler ( $term_id, $tt_id = null )

term_relationship_handler() публичный Метод

Handle Notifying VaultPress of term_relationship changes
public term_relationship_handler ( $object_id, $term_id )

term_relationships_handler() публичный Метод

Handle Notifying VaultPress of term_relationship changes
public term_relationships_handler ( $object_id, $term_ids )

term_taxonomies_handler() публичный Метод

Handle Notifying VaultPress of term_taxonomy changes
public term_taxonomies_handler ( $tt_ids )

term_taxonomy_handler() публичный Метод

Handle Notifying VaultPress of term_taxonomy changes
public term_taxonomy_handler ( $tt_id )

theme_action_handler() публичный Метод

Handle Notifying VaultPress of Theme Switches
public theme_action_handler ( $theme )

toolbar() публичный Метод

display a security threat notice if one exists
public toolbar ( $wp_admin_bar )

ui() публичный Метод

public ui ( )

ui_fatal_error() публичный Метод

public ui_fatal_error ( )

ui_load() публичный Метод

public ui_load ( )

ui_main() публичный Метод

public ui_main ( )

ui_message() публичный Метод

public ui_message ( $message, $type = 'notice', $heading = '' )

ui_register() публичный Метод

public ui_register ( )

update_firewall() публичный Метод

public update_firewall ( )

update_option() публичный Метод

public update_option ( $key, $value )

update_options() публичный Метод

public update_options ( )

update_plan_settings() публичный Метод

Update local cache of VP plan settings, based on a ping or connection test result
public update_plan_settings ( $message )

updated_auto_register_option() публичный Метод

This should only be run when the option is updated from the Jetpack/WP.com API call, and only if the new key is different than the old key.
public updated_auto_register_option ( mixed $old_value, mixed $value )
$old_value mixed The old option value, or the option name (if add_option).
$value mixed The new option value.

upgrade() публичный Метод

public upgrade ( )

upload_handler() публичный Метод

Handle Notifying VaultPress of Upload Activity
public upload_handler ( $file )

userid_action_handler() публичный Метод

Handle Notifying VaultPress of User Edits
public userid_action_handler ( $user_or_id )

usermeta_action_handler() публичный Метод

Handle Notifying VaultPress of UserMeta changes
public usermeta_action_handler ( $umeta_id, $user_id, $meta_key, $meta_value = '' )

validate_api_signature() публичный Метод

validate_ip_address() публичный Метод

public validate_ip_address ( $rxs )

verify_table() публичный Метод

public verify_table ( $table )

woocommerce_attribute_handler() публичный Метод

woocommerce_order_item_handler() публичный Метод

woocommerce_order_item_meta_handler() публичный Метод

woocommerce_tax_rate_handler() публичный Метод

WooCommerce notifications

Описание свойств

$auto_register_option публичное свойство

public $auto_register_option

$db_version публичное свойство

public $db_version

$option_name публичное свойство

public $option_name

$plugin_version публичное свойство

public $plugin_version