I’m utilizing submit widget in elementor professional. Concept is to point out all posts by a particular customized submit kind. Now, I need to apply additionally some filters particularly I need to present solely posts in a specific standing (ie, “draft”) and people created (“submit creator”) by the person logged in.
I’ve been capable of create a question for standing and cross the question id (my_query_by_post_status), that is the case:
add_action( 'elementor/question/my_query_by_post_status', perform( $question ) {
$query->set( 'post_status', ['draft'] );
} );
However I do not know methods to add a situation to say “just for creator identical as the present person logged in”.
Can anyone assist me on this?
I actually respect and thanks upfront.
Mario.