• Resolved antonely93

    (@antonely93)


    Hello,

    Thank you for this plugin πŸ™‚ . It’s working well but i want to ask: is there a way to allow the request to access the Private Posts of the current logged user ?

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shabti Kaplan

    (@shabti)

    Hi, great question. We will add this option very soon. In the mean time, you can use this code snippet taken from Elementor’s documentation:
    https://developers.elementor.com/docs/hooks/custom-query-filter/

    /**
     * Update the query to use specific post statuses.
     *
     * @since 1.0.0
     * @param \WP_Query $query The WordPress query instance.
     */
    function my_query_by_post_status( $query ) {
    	$query->set( 'post_status', [ 'future', 'draft'] );
    }
    add_action( 'elementor/query/{$query_id}', 'my_query_by_post_status' );

    You need to change the {$query_id} to your query id for this to work

    I tried this but it simply doesn’t work. When will this feature be in your plugin? I am waiting to see if we should buy your FrontEnd Admin but i want to see what kind of support you offer.

    • This reply was modified 10 months, 3 weeks ago by awjensen.
    Plugin Author Shabti Kaplan

    (@shabti)

    Sorry to hear that. I will make sure we implement this important feature soon

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Allow to get Private Posts’ is closed to new replies.