Add the Comments Template After Single Product
function g9_show_reviews() { // Loads the comment template comments_template(); } add_action(‘woocommerce_after_single_product’, ‘g9_show_reviews’, 15);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function g9_show_reviews() { // Loads the comment template comments_template(); } add_action(‘woocommerce_after_single_product’, ‘g9_show_reviews’, 15);Continue reading
add_filter(‘woocommerce_apply_base_tax_for_local_pickup’, ‘__return_false’);Continue reading
function pw_edd_custom_currency_format( $formatted, $currency, $price ) { return $price . ‘ USD’; } add_filter( ‘edd_usd_currency_filter_before’, ‘pw_edd_custom_currency_format’, 10, 3 ); add_filter( ‘edd_usd_currency_filter_after’, ‘pw_edd_custom_currency_format’, 10, 3 );Continue reading
function ao_edd_set_customer_role( $payment_id ) { $email = edd_get_payment_user_email( $payment_id ); $downloads = edd_get_payment_meta_downloads( $payment_id ); $user_id = edd_get_payment_user_id( $payment_id ); if( $user_id ) { $user = new WP_User( $user_id ); // Add role $user->add_role( ‘buyer’ ); } } add_action( ‘edd_complete_purchase’,…Continue reading
google.com, pub-8822076209599189, DIRECT, f08c47fec0942fa0Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
function sumobi_edd_show_terms_agreement() { global $edd_options; /*print_r($edd_options);*/ if ( isset( $edd_options[‘show_agree_to_terms’] ) ) { ?>Continue reading