Description
Filter the arguments passed to get_posts() when pulling posts to display for the Embed URL rule.
Usage
add_filter( 'gpls_rule_get_post_args', 'my_custom_function' );
Parameters
args array
An array of WP_Query arguments.
Since
This filter is available since GP Limit Submissions 1.0.
Examples
Include posts of a custom post type in the Embed URL › Post/Page rule.
add_filter( 'gpls_rule_get_post_args', function( $args ) {
// Change "my_custom_post_type" to the slug of your custom post type.
$args['post_type'][] = 'my_custom_post_type';
return $args;
} );