PHP 클래스 HM\BackUpWordPress\Plugin

파일 보기 프로젝트 열기: humanmade/backupwordpress

공개 메소드들

메소드 설명
constants ( ) Define all the constants.
display_feature_message ( )
get_instance ( ) : Plugin Insures we always return the same object.
hooks ( ) Hook into WordPress page lifecycle and execute BackUpWordPress functions.
init ( ) Runs on every admin page load
load_first ( ) Ensure BackUpWordPress is loaded before add-ons, changes the order of the serialized values in the DB field.
load_intercom_script ( ) Load Intercom and send across user information and server info. Only loaded if the user has opted in.
maybe_self_deactivate ( ) : boolean Check plugin requirements.
plugins_loaded ( ) Initialize the plugin.
schedule_hook_run ( $schedule_id ) Function to run when the schedule cron fires.
scripts ( $hook ) Load the Javascript in the admin.
styles ( $hook ) Enqueue the plugin styles.
text_domain ( ) Loads the plugin text domain for translation.
upgrade ( ) Determine if we need to run an upgrade routine.

보호된 메소드들

메소드 설명
generate_key ( ) : string Generate a unique key.
includes ( ) Load all BackUpWordPress functions.

비공개 메소드들

메소드 설명
__construct ( ) Instantiates a new Plugin object.

메소드 상세

constants() 공개 메소드

Define all the constants.
public constants ( )

display_feature_message() 공개 메소드

generate_key() 보호된 메소드

Generate a unique key.
protected generate_key ( ) : string
리턴 string

get_instance() 공개 정적인 메소드

Insures we always return the same object.
public static get_instance ( ) : Plugin
리턴 Plugin

hooks() 공개 메소드

Hook into WordPress page lifecycle and execute BackUpWordPress functions.
public hooks ( )

includes() 보호된 메소드

Load all BackUpWordPress functions.
protected includes ( )

init() 공개 메소드

Runs on every admin page load
public init ( )

load_first() 공개 메소드

Ensure BackUpWordPress is loaded before add-ons, changes the order of the serialized values in the DB field.
public load_first ( )

load_intercom_script() 공개 메소드

Load Intercom and send across user information and server info. Only loaded if the user has opted in.

maybe_self_deactivate() 공개 메소드

Check plugin requirements.
public maybe_self_deactivate ( ) : boolean
리턴 boolean True is fails requirements. False otherwise.

plugins_loaded() 공개 메소드

Initialize the plugin.
public plugins_loaded ( )

schedule_hook_run() 공개 메소드

Function to run when the schedule cron fires.
public schedule_hook_run ( $schedule_id )
$schedule_id

scripts() 공개 메소드

Load the Javascript in the admin.
public scripts ( $hook )
$hook The name of the admin page hook.

styles() 공개 메소드

Enqueue the plugin styles.
public styles ( $hook )
$hook

text_domain() 공개 메소드

This setup allows a user to just drop his custom translation files into the WordPress language directory Files will need to be in a subdirectory with the name of the textdomain 'backupwordpress'
public text_domain ( )

upgrade() 공개 메소드

Determine if we need to run an upgrade routine.
public upgrade ( )