Add Custom Product Data Tab
Add a custom product data tab in WooCommerce with a label and panel. Use filters like woocommerce_product_data_tabs to enhance product editing.
Add a custom product data tab in WooCommerce with a label and panel. Use filters like woocommerce_product_data_tabs to enhance product editing.
Need to know who made a WooCommerce coupon? WooCommerce doesn’t show this by default, but here’s how you can add author tracking functionality easily.
How To Limit Search Results For Specific Post Types in WordPress
Need to show custom tools or pages in WordPress admin? Use this simple snippet to add your own admin menu tab using add_menu_page().
How to add a submenu page to the WooCommerce “Products” admin menu using “admin_menu” hook.
Example: Sometime we need to show content on frontend with adding some prefix or suffix or may be you have enter spelling mistakes in 2000 posts. so it is very difficult to modify 2000 posts so we can modify using filter . SO mistake will be replaced by correction. For Modifying post content only: function link_words( $text ) { $replace = ‘Replace with’; $text = str_replace( ‘Want To replace text’, $replace, $text ); return $text; } add_filter( ‘the_content’, ‘link_words’ ); For Modifying post excerpt only function link_words( $text ) { $replace = ‘Replace with’; $text = str_replace( ‘Want To replace text’, $replace, $text ); return $text; } add_filter( ‘the_excerpt’, ‘link_words’ ); For Modifying post content and excerpt both function link_words( $text ) { $replace = ‘Replace with’; $text = str_replace( ‘Want To replace text’, $replace, $text ); return $text; } add_filter( ‘the_content’, ‘link_words’ );
Elementor’s popup in WordPress to show CF7 form. The popup closes before it can show the after submit confirmation text or validation error.
Filters the field $value after being loaded. Sort a repeater field using a function called array_multisort(). Sorting Filtering Modifying ACF results .
How to add some text to the thank you page, the page that customers see after they place an order In WooCommerce Checkout page.
Fetch wordpress categories Using inbuilt functions like get_categories(), wp_list_categories(), wp_dropdown_categories().