Yoast_Plugin_Conflict::__construct()
Setting instance, all active plugins and search for active plugins.
Protected constructor to prevent creating a new instance of the
Singleton via the new operator from outside this class.
Метод класса: Yoast_Plugin_Conflict{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->__construct();
Код Yoast_Plugin_Conflict::__construct() Yoast Plugin Conflict:: construct Yoast 24.6
protected function __construct() { // Set active plugins. $this->all_active_plugins = get_option( 'active_plugins' ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information. if ( isset( $_GET['action'] ) && is_string( $_GET['action'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are not processing form information and only comparing the variable in a condition. $action = wp_unslash( $_GET['action'] ); if ( $action === 'deactivate' ) { $this->remove_deactivated_plugin(); } } // Search for active plugins. $this->search_active_plugins(); }