Replacing a plugin function with a custom renamed function doesn’t work

First, in the original wc_bookings_get_time_slots_html() function, the following line: $block_html .= ‘<div class=”please-select”>Hi please select your session</div>’; doesn’t exist, so that is confusing for people trying to get what is the difference between the original function, and the one you copied (renamed and customized) in your active theme’s function php file. Now copying a plugin … Read more

Displaying Woocommerce Product Category in WordPress

woocommerce categories are not a “category” they’re the product_cat taxonomy. change your args like so: $params = array( ‘posts_per_page’ => 5, ‘post_type’ => ‘product’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘product_cat’, ‘field’ => ‘slug’, ‘terms’ => ‘cap’ ) ) );

Which field should I edit to make the checkbox marked by default?

It most likely must is ‘default’ => TRUE. ‘request_vendor_access’ => [ ‘label’ => __(‘Request access to become an Artist’, ‘ignitewoo_vendor_stores’), ‘type’ => ‘checkbox’, ‘required’ => FALSE, ‘class’ => [‘form-row-full vendor_stores_request_access’], ‘clear’ => TRUE, ‘default’ => TRUE, ] If not, also try ‘default_value’ => TRUE, or try it without ‘clear’. Depending on what you want to … Read more

How to bypass maintenance mode with external cron?

It’s been awhile since the moment of the question, but maybe a solution will help someone in the future. Just define IS_WP_CLI variable in the beginning of your script . … define(‘IS_WP_CLI’, true); // Avoid maintenance mode require_once HOME_PATH . ‘/wp-load.php’; … If IS_WP_CLI defined -> maintenance mode will not be instantiated. if (defined(‘IS_WP_CLI’)) { … Read more