rwmb_frontend_dashboard_query_args Args

Support MB Frontend Submission rwmb_frontend_dashboard_query_args ArgsResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38904
    PiotrPiotr
    Participant

    Hi,

    I wanted to adjust posts seen in the frontend dashboard page, e.g., I'd like to show there only specific post type or with specific status, and not limited to posts created by current user.

    Would you give some more examples of arguments accepted by this filter?

    Documentation (https://docs.metabox.io/extensions/mb-frontend-submission/#dashboard-hooks) shows only one example ($args['cat']).

    Thanks.

    #38912
    Long NguyenLong Nguyen
    Moderator

    Hi,

    It's the arguments of a WP Query, you can read more here https://developer.wordpress.org/reference/classes/wp_query/

    For example:

    $args['post_type'] = 'my-cpt-slug';
    $args['post_status'] = 'publish';
    #38920
    PiotrPiotr
    Participant

    Okay, thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.