email alert for product availability
this called waitlist you can use this free plugin
this called waitlist you can use this free plugin
that function is deprecated, use wc_get_cart_remove_url( $cart_item_key ) instead if (is_checkout()) { $product_name .= apply_filters(‘woocommerce_cart_item_remove_link’, sprintf( ‘<a href=”%s” rel=”nofollow” class=”remove” style=”float:left;”>×</a>’, esc_url(wc_get_cart_remove_url($cart_item_key)), __(‘Remove this item’, ‘woocommerce’), esc_attr($cart_item[‘product_id’]), esc_attr($cart_item[‘data’]->get_sku()) ), $cart_item_key); return $product_name; }
post__in takes an array of post IDs. What you are passing is a string into an array Try to change code a bit e.g. // Check if href has a value before we continue to eliminate bugs if ( !$value [‘id_post’] ) return false; $post_ids_array = explode(‘,’, $value[‘id_post’]); $args = array( ‘post__in’ => $post_ids_array, ‘orderby’ … Read more
In a link element ids WP add -css, so you need to remove it. May be this will help: function remove_font_awesome() { wp_dequeue_style(‘geowidget-4.5-css’); // not geowidget-4.5-css-css } add_action (‘wp_enqueue_scripts’, ‘remove_font_awesome’, 9999); add_action( ‘wp_head’, ‘remove_font_awesome’, 9999 );
Just check if $_POST contains key with id of correstponding term. if (isset($_POST[‘recvid’][$term->term_id])) { However, I would not loop through all the terms. get_terms function has corresponding option. So, to receive all posted ids, you would do this (also note, that first parameter may be a string, no need for an array): $brands = get_terms(‘recipebrands’, … Read more
I finally got it figured out. In order to see the content that I was trying to edit, I turned on debugging in wp-config.php: define(‘WP_DEBUG’, true); // set true if ( WP_DEBUG ) { define(‘WP_DEBUG_LOG’, ‘../logs/debug.log’ ); define(‘WP_DEBUG_DISPLAY’, false); // don’t display errors on pages @ini_set( ‘display_errors’, 0 ); } Then, in the function that … Read more
Try changing the priority, there could be other filters being applied afterwards, i.e: add_filter( ‘the_content’, ‘eri_course_archive_content_filter’, 999 ); If that doesn’t work, check that the_content() is actually being called in your archive template, because for example: echo get_the_content(); will not apply any filters set on the_content
filter_input is the proper way to go. If it doesn’t return anything valid, it will return null: $myvar = filter_input( INPUT_POST, ‘something’, FILTER_SANITIZE_STRING ); if ( empty( $myvar ) ) { // Do whatever you would have done for ! isset( $_POST[‘something’] ) } // Use $myvar filter_input won’t throw any notices if the requested … Read more
The divisors loop assumes that the next row is 1000 times larger than the current one so I think you’ll have to change the logic here, e.g. keep iterating until the divisor is too big and use the previous one e.g. if (!isset($divisors)) { $divisors = array( pow(10, 0) => ”, pow(10, 3) => ‘K’, … Read more
It sounds like you want to add an item to the cart of a specific user, not just the session of the browser making the request. WooCommerce’s add_to_cart function will only add an item to the cart of the user making the request. I don’t believe WooCommerce has an easy one-line solution, but you could … Read more