[wp_php_error_message]
WP_Hook Object
(
    [callbacks] => Array
        (
            [15] => Array
                (
                    [0000000000002e860000000000000000custom_error_message] => Array
                        (
                            [function] => Array
                                (
                                    [0] => WPCode_Snippet_Execute Object
                                        (
                                            [doing_activation:WPCode_Snippet_Execute:private] => 
                                            [types] => Array
                                                (
                                                    [html] => Array
                                                        (
                                                            [class] => WPCode_Snippet_Execute_HTML
                                                        )

                                                    [text] => Array
                                                        (
                                                            [class] => WPCode_Snippet_Execute_Text
                                                        )

                                                    [blocks] => Array
                                                        (
                                                            [class] => WPCode_Snippet_Execute_Blocks
                                                            [is_pro] => 1
                                                        )

                                                    [css] => Array
                                                        (
                                                            [class] => WPCode_Snippet_Execute_CSS
                                                        )

                                                    [scss] => Array
                                                        (
                                                            [class] => WPCode_Snippet_Execute_SCSS
                                                            [is_pro] => 1
                                                        )

                                                    [js] => Array
                                                        (
                                                            [class] => WPCode_Snippet_Execute_JS
                                                        )

                                                    [php] => Array
                                                        (
                                                            [class] => WPCode_Snippet_Execute_PHP
                                                        )

                                                    [universal] => Array
                                                        (
                                                            [class] => WPCode_Snippet_Execute_Universal
                                                        )

                                                )

                                            [types_labels] => 
                                            [snippet_executed] => WPCode_Snippet Object
                                                (
                                                    [post_type] => wpcode
                                                    [location_taxonomy] => wpcode_location
                                                    [code_type_taxonomy] => wpcode_type
                                                    [tags_taxonomy] => wpcode_tags
                                                    [id] => 17088
                                                    [post_data] => 
                                                    [title] => Block carding attempts via WooCommerce Store API checkout
                                                    [code] => function fixednet_block_wc_store_api_checkout() {
    if ( is_admin() || wp_doing_cron() ) {
        return;
    }

    $current_url = $_SERVER['REQUEST_URI'] ?? '';

    if ( strpos( $current_url, '/wp-json/wc/store/checkout' ) !== false ) {

        if ( ! is_user_logged_in() ) {
            wp_die(
                'Access denied.',
                'Blocked',
                [ 'response' => 403 ]
            );
            exit;
        }
    }
}
add_action( 'rest_api_init', 'fixednet_block_wc_store_api_checkout' );

                                                    [code_type] => php
                                                    [location] => everywhere
                                                    [auto_insert] => 1
                                                    [insert_number] => 1
                                                    [active] => 
                                                    [tags] => 
                                                    [location_term:WPCode_Snippet:private] => 
                                                    [code_type_term:WPCode_Snippet:private] => 
                                                    [tags_terms:WPCode_Snippet:private] => 
                                                    [use_rules:WPCode_Snippet:private] => 
                                                    [rules:WPCode_Snippet:private] => Array
                                                        (
                                                        )

                                                    [priority:WPCode_Snippet:private] => 10
                                                    [library_id:WPCode_Snippet:private] => 
                                                    [cloud_id:WPCode_Snippet:private] => 
                                                    [custom_shortcode] => 
                                                    [library_version:WPCode_Snippet:private] => 
                                                    [note:WPCode_Snippet:private] => 
                                                    [generator:WPCode_Snippet:private] => 
                                                    [generator_data:WPCode_Snippet:private] => 
                                                    [compress_output] => 
                                                    [device_type] => 
                                                    [schedule] => 
                                                    [compiled_code] => 
                                                    [location_extra] => 
                                                    [shortcode_attributes] => Array
                                                        (
                                                        )

                                                    [attributes] => 
                                                    [load_as_file] => 
                                                    [modified] => 2025-09-08 04:56:51
                                                )

                                            [snippet_types:WPCode_Snippet_Execute:private] => Array
                                                (
                                                )

                                            [line_reference:WPCode_Snippet_Execute:private] => Array
                                                (
                                                    [17088] => Array
                                                        (
                                                            [start] => 1
                                                            [end] => 21
                                                        )

                                                )

                                        )

                                    [1] => custom_error_message
                                )

                            [accepted_args] => 2
                        )

                )

        )

    [priorities:protected] => Array
        (
            [0] => 15
        )

    [iterations:WP_Hook:private] => Array
        (
        )

    [current_priority:WP_Hook:private] => Array
        (
        )

    [nesting_level:WP_Hook:private] => 0
    [doing_action:WP_Hook:private] => 
)

Questions? Call us : 218.839.0117

Free Shipping on all orders

See our store hours & services

Deliveries made 4-7 business days from order

Blog

Blog2023-07-03T10:44:27-05:00
Go to Top