Sunday, October 9, 2022
HomeWordPress DevelopmentQuestion filter on customized submit by present creator in submit widget for...

Question filter on customized submit by present creator in submit widget for elementor question id


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.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments