apply_filters( ‘nab_pre_get_post’, null|array|WP_Post|WP_Error $post , int|string $post_id , string $post_type )
Filters the post before the actual query is run.
Parameters
- $post null|array|WP_Post|WP_Error
(Required) The post to filter. Form the array like this:
$post = array( 'id' => string|int, 'title' => string, 'excerpt' => string, 'date' => string, 'imageId' => int, 'imageSrc' => string, 'thumbnailSrc' => string, 'type' => string, 'typeLabel' => string, 'status' => string, 'statusLabel' => string, 'link' => string, );- $post_id int|string
(Required) The id of the post.
- $post_type string
(Required) The post type.


