woocommerce_create_page_id

woocommerce_create_page_id

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_create_page_id') is found 1 times:

  • /includes/admin/wc-admin-functions.php line 121
    		$valid_page_found = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_status NOT IN ( 'pending', 'trash', 'future', 'auto-draft' )  AND post_name = %s LIMIT 1;", $slug ) );
    	}
    
    	/* phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment */
    	$valid_page_found = apply_filters( 'woocommerce_create_page_id', $valid_page_found, $slug, $page_content );
    	/* phpcs: enable */
    
    	if ( $valid_page_found ) {
    		if ( $option ) {
    			update_option( $option, $valid_page_found );
    		}