Display a custom notice in woocommerce
Display custom notice in woocommerce Quick Solution: /* custom notices */ add_action(‘template_redirect’, ‘my_custom_message’); function my_custom_message() { //you can change role or page slug below if
Display custom notice in woocommerce Quick Solution: /* custom notices */ add_action(‘template_redirect’, ‘my_custom_message’); function my_custom_message() { //you can change role or page slug below if
Redirect product – page – role based with IF condition in wordpress through functions.php or a plugin Quick Solution: add_action( ‘wp’, ‘redirect_single_product_page’ ); function redirect_single_product_page()
How to use custom metabox in wordpress for post types? //change post type for the first time here function lets_add_custom_meta_box() { add_meta_box("my-custom-meta-box", "Additional Info", "my_custom_meta_box_markup",
Website Designer Sangrur Website Design Sangrur Website design is an essential element for any business or organization, and Sangrur is home to several experienced and
How to remove gray screen before splash screen – Cordova? Go to this file location first: /Users/User/Development/project/platforms/android/app/src/main/res/values/styles.xml Add the below given code to your style.xml
Cordova checklist 2023 for building cordova android applications Apache Cordova is an open-source mobile development framework. WebView, Web App, Plugins fall under the architecture of
How to change WooCommerce product title on loop? remove_action( ‘woocommerce_shop_loop_item_title’,’woocommerce_template_loop_product_title’, 10 ); add_action(‘woocommerce_shop_loop_item_title’, ‘soChangeProductsTitle’, 10 ); function soChangeProductsTitle() { echo ‘<h6 class=”‘ . esc_attr( apply_filters(
If you are using default theme/builder then use the hook below Remove “Category:”, “Tag:”, “Author:” from the_archive_title add_filter(‘get_the_archive_title’, function ($title) { if (is_category()) { $title
Creating breadcrumbs programmatically in WordPress function custom_breadcrumbs() { // Settings $separator = ‘»’; $breadcrums_id = ‘breadcrumbs’; $breadcrums_class = ‘breadcrumbs’; $home_title = ‘Home’; // If you
get all orders by user id $customer = wp_get_current_user(); // Get all customer orders $customer_orders = get_posts(array( ‘numberposts’ => -1, ‘meta_key’ => ‘_customer_user’, ‘orderby’ =>
Got a Question? Check out our FAQ Section.