Question
In my WordPress Index.html I am pulling out the 3 latest posts by using <?php query_posts('posts_per_page=3') ?> <?php while(have_posts()) : the_post(); ?> //rest of the post related data <?php endwhile; wp_reset_query(); ?> <?php do_action('show_navigation'); after that I want to fetch the next ...

Question
I have added custom price on woocommerce single product page using the code below on my theme's functions php: <?php // Output the Custom field in Product pages add_action("woocommerce_before_add_to_cart_button", "options_on_single_product", 1); function options_on_single_product(){ ?> <ul class="pricing-options"> <li> <div class="custom-radio"> <input type="radio" id="opt1" class="" name="filter_opt" ...

Question
I have this function: add_filter( 'prdctfltr_show_filter', 'my_hide_filter_on_category_function_jkbg4iu3b' ); function my_hide_filter_on_category_function_jkbg4iu3b() { if ( is_product_category( 'cheese' ) ) { return false; } return true; } Is any possibility to use ONE function and ONE filter but for MANY WooC Product Categories - not only ...

Question
Situation: I'm working on a plugin and I'm developing it as a class, everything worked fine until I run into this situation. I wanted to make things a bit cleaner and tried this.. class MyPlugin { function __construct() ...

Question
I'm trying to develop a plugin that would update the stock quantity of products to 0 (Out of stock) that are older than X days. The logic that I'm using is: Select products who's modofied date is greater than X days ...