woocommerce_api_check_permission

woocommerce_api_check_permission

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_check_permission') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-resource.php line 475

    Warning: Undefined array key 477 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 478 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 479 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 480 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    		} elseif ( 'delete' === $context ) {
    			$permission = current_user_can( $post_type->cap->delete_post, $post->ID );
    		}
    
    		return apply_filters( 'woocommerce_api_check_permission', $permission, $context, $post, $post_type );
    	}
    }