Viewing 1 replies (of 1 total)
  • Thread Starter marcelo2605

    (@marcelo2605)

    Found the solution:

    add_filter('gfcpt_get_posts_args_3_3', function( $args ){
    	$args['post_parent'] = '0';
    	$args['author'] = get_current_user_id();
    	return $args;
    });

    The first number is the form ID and the second is the filed ID.

Viewing 1 replies (of 1 total)

The topic ‘Filter parent posts’ is closed to new replies.