Skip to content

[Resolved] Allow query filtering without PP_UNFILTERED_FRONT

Home Forums Press Permit API Allow query filtering without PP_UNFILTERED_FRONT

This topic contains 2 replies, has 2 voices, and was last updated by 3 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20736 Reply

    Hi,

    now the following line of code does not allow you to use pp_skip_filtering when PP_UNFILTERED_FRONT is not defined.

    if ( defined( ‘PP_UNFILTERED_FRONT’ ) && ( ( ‘read’ == $required_operation ) || ( ! $required_operation && pp_is_front() && ! is_preview() ) || apply_filters( ‘pp_skip_filtering’, false, $args ) ) ) {

    This means that (if I’ve understood correctly) that there is now way to skip filtering for certain queries without enabling PP_UNFILTERED_FRONT. Why is that? Could pp_skip_filtering be outside of the && () -part or could there be another filter for this kind of filtering?

    I have a lot of queries in the admin that I would need to skip filtering for, but pp_skip_filtering -filter does not allow me to do this unless I disable filtering for the whole front end… :S

    A-P

    #20738 Reply

    [ login required ]

    #20739 Reply

    [ login required ]

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

You must be logged in to reply to this topic.

Registered members have full access to Pro support forums here.

Feel free to log in or purchase a support key.