• Resolved Tomasz Lisek

    (@tomaszlisek)


    Hi, is there any chance that you could add a filter to allow users to modify the product dropdown query ( Woocommerce_Pay_Per_Post_Admin->get_all_products() ) in our theme files?

    For example – I wanted to be able to select products in all languages, not just in the same language as the post – so I had to modify the dropdown query by adding 'lang' => '' – but i would have to do this every time tha plugin is updated. A filter for this would be nice.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matt Pramschufer

    (@mattpramschufer)

    Tomasz,
    I can TOTALLY do that for you. No problem at all. Next release will have a filter for the get_all_products() function.

    Thread Starter Tomasz Lisek

    (@tomaszlisek)

    Thank you very much, that’s great! (Also get_virtual_products() )

    Also, I have noticed that the text in shortcode-purchased.php is not translatable 😉

    Plugin Author Matt Pramschufer

    (@mattpramschufer)

    Just letting you know I just released a new version and it includes two new filters and addresses the shortcode-purchased.php page.

    = 2.1.13 =
    * NEW FEATURE – Added in two new filters wc_pay_per_post_all_product_args and wc_pay_per_post_virtual_product_args
    * UPDATE – Updated the virtual product filter to adhere to new WooCommerce meta values
    * UPDATE – Addressed more pages to make them translatable
    * BUG FIX – Corrected PHP warning message for invalid argument when using implode()

    Thread Starter Tomasz Lisek

    (@tomaszlisek)

    Thank you, it works great now!

    Plugin Author Matt Pramschufer

    (@mattpramschufer)

    Perfect! Glad I could help.

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

The topic ‘Add filter to dropdown query’ is closed to new replies.