PHP 클래스 Inpsyde\MultilingualPress\Installation\PluginDeactivator

부터: 3.0.0
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
__construct ( string $plugin_base_name, string $plugin_name, array $errors = [] ) Constructor. Sets up the properties.
deactivate_plugin ( ) : void Deactivates the plugin, and renders an according admin notice.

비공개 메소드들

메소드 설명
get_errors_as_string ( ) : string Returns the according string for all error messages to be displayed in the admin notice.
render_admin_notice ( ) : void Renders an admin notice informing about the plugin deactivation, including potential error messages.

메소드 상세

__construct() 공개 메소드

Constructor. Sets up the properties.
부터: 3.0.0
public __construct ( string $plugin_base_name, string $plugin_name, array $errors = [] )
$plugin_base_name string The base name of the plugin.
$plugin_name string The name of the plugin.
$errors array Optional. Error messages. Defaults to empty array.

deactivate_plugin() 공개 메소드

Deactivates the plugin, and renders an according admin notice.
부터: 3.0.0
public deactivate_plugin ( ) : void
리턴 void