// ACF custom variables $knowsabout = get_field( ‘author_knowsabout’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout2 = get_field( ‘author_knowsabout_2’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout3 = get_field( ‘author_knowsabout_3’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout4 = get_field( ‘author_knowsabout_4’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout5 = get_field( ‘author_knowsabout_5’,…Continue reading
error_log(‘[CORRUGATED STUDIO] LOAD’); $corrugated_studio = null; function corrugatedStudioContactForm($attrs = [], $content = null, $tag = ”) { error_log(‘[corrugatedStudioContactForm] START’); global $corrugated_studio; if(!$corrugated_studio) return; $attrs = array_change_key_case((array) $attrs, CASE_LOWER); $paperform_id = null; if(!isset($attrs[‘paperform_id’])) return; $paperform_id = $attrs[‘paperform_id’]; error_log(‘[corrugatedStudioContactForm] paperform_id: ‘ .…Continue reading
add_filter( ‘do_redirect_guess_404_permalink’, ‘__return_false’ );Continue reading
// This code removes the default ‘Edit Profile’ tab from the Paid Member Subscriptions account page // and replaces it with a custom tab named ‘Edit Profile’ tab that properly renders the WYSIWYG Profile Builder form. // This allows the…Continue reading
// This code removes the default ‘Edit Profile’ tab from the Paid Member Subscriptions account page // and replaces it with a custom tab named ‘Edit Profile’ tab that properly renders the WYSIWYG Profile Builder form. // This allows the…Continue reading
add_filter(‘rank_math/snippet/rich_snippet_product_entity’, function ($entity) { $score = get_post_meta(get_the_ID(), ‘_wc_average_rating’, true); // Replace with your rating post meta. $count = get_post_meta(get_the_ID(), ‘_wc_review_count’, true); // Replace with your rating count post meta. $entity[‘aggregateRating’] = array( ‘@type’ => ‘aggregateRating’, ‘ratingValue’ => $score, ‘ratingCount’ =>…Continue reading
function woocommerce_sale_flash_from_woo_discount_rules_v2($html, $post, $product){ $discounted_price = apply_filters(‘advanced_woo_discount_rules_get_product_discount_price_from_custom_price’, false, $product, 1, 0, ‘discounted_price’, true); if($discounted_price !== false){ $percentage = round( ( ( $product->get_price() – $discounted_price ) / $product->get_price()) * 100 ); $html = ‘ -‘ . $percentage . ‘%’ . ‘…Continue reading
function woocommerce_sale_flash_from_woo_discount_rules_v2($html, $post, $product){ $discounted_price = apply_filters(‘advanced_woo_discount_rules_get_product_discount_price_from_custom_price’, false, $product, 1, 0, ‘discounted_price’, true); if($discounted_price !== false){ $percentage = round( ( ( $product->get_price() – $discounted_price ) / $product->get_price()) * 100 ); $html = ‘ -‘ . $percentage . ‘%’ . ‘…Continue reading
function my_custom_password_form() { global $post; $label = ‘pwbox-‘ . ( empty( $post->ID ) ? rand() : $post->ID ); $output = ‘ ‘ . __( ” ) . ‘ ‘ . esc_attr_x( ‘Get Your Forms’, ‘post password form’ ) . ‘…Continue reading
// When the user profile form is updated, this snippet checks if the business_name field matches a preexisting vendor post title. // If so, a vendor profile claim request is sent to the ‘Vendor Claims’ admin page // This snippet…Continue reading