AffiliateWP not calculating multiple quantities when using affwp_calc_referral_amount filter
AffiliateWP not calculating multiple quantities when using affwp_calc_referral_amount filter
AffiliateWP not calculating multiple quantities when using affwp_calc_referral_amount filter
Always sanitize input fields. Use $wpdb->get_var to check a single variable. You forgot to add the compare value to the WHERE clause. function username_auth() { global $wpdb; $username = sanitize_text_field( $_POST[‘custom_field_username’] ); $user_login_sql = $wpdb->get_var(“SELECT username FROM registration_info WHERE username=”$username” “); if( $username !== $user_login_sql ) { wc_add_notice((‘Incorrect username123’), ‘error’); } }
Woocommerce how to show most selling products by category
Adding total_sales to Grouped Product within WooCommerce
dakon show vender address on checkout page
$user = wp_get_current_user(); if (!current_user_can(‘activate_plugins’)) { add_action(‘admin_head’, ‘removeCategories’, 100); function removeCategories() { echo “<style>#product_cat-23{display: none !important;}</style>”; } } It’s admin_head for admin UI.
Woocommerce – display all sold out products
Grabbing value of input field inside of array
There are two ways of passing meta arguments to the WP_Query/get_posts, you can check them both in the documentation for WP_Query. There is a single meta structure, like this $args = array( ‘meta_key’ => ‘color’, ‘meta_value’ => ‘blue’, ‘meta_compare’ => ‘!=’ ); And a multi meta structure, like this $args = array( ‘meta_query’ => array( … Read more
WCFM Custom form