Automattic\WooCommerce\Internal\MCP
McpEndpointRemoval::handle_woocommerce_hide_mcp_endpoint_removed_notice
Handle the woocommerce_hide_mcp_endpoint_removed_notice hook.
Dismissing the removal notice acts on it for the whole store, so delete the old feature option that triggers it.
Метод класса: McpEndpointRemoval{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$McpEndpointRemoval = new McpEndpointRemoval(); $McpEndpointRemoval->handle_woocommerce_hide_mcp_endpoint_removed_notice(): void;
Код McpEndpointRemoval::handle_woocommerce_hide_mcp_endpoint_removed_notice() McpEndpointRemoval::handle woocommerce hide mcp endpoint removed notice WC 11.3.0
public function handle_woocommerce_hide_mcp_endpoint_removed_notice(): void {
delete_option( self::FEATURE_OPTION );
}