Automattic\WooCommerce\Internal\MCP
McpEndpointRemoval::__construct
Constructor.
Метод класса: McpEndpointRemoval{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$McpEndpointRemoval = new McpEndpointRemoval(); $McpEndpointRemoval->__construct();
Код McpEndpointRemoval::__construct() McpEndpointRemoval:: construct WC 11.3.0
public function __construct() {
add_action( 'rest_api_init', array( $this, 'handle_rest_api_init' ) );
add_action( 'admin_notices', array( $this, 'handle_admin_notices' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'handle_admin_enqueue_scripts' ) );
add_action( 'activated_plugin', array( $this, 'handle_activated_plugin' ) );
add_action( 'woocommerce_hide_' . self::REMOVED_NOTICE . '_notice', array( $this, 'handle_woocommerce_hide_mcp_endpoint_removed_notice' ) );
}