Add Vendor Ratings / Feedback to Product Page

add_action('woocommerce_before_add_to_cart_form','vendor_feedback_product_page'); function vendor_feedback_product_page() { $vendor_id = get_the_author_meta('ID'); $vendor_shop = urldecode( get_query_var( 'vendor_shop' ) ); if (…

Resetting the Vendor & Pending Vendor Roles

add_filter('woocommerce_login_redirect', 'redo_roles', 10, 2); function redo_roles() { remove_role( 'pending_vendor' ); add_role( 'pending_vendor', __( 'Pending Vendor', 'wcvendors'…

Untitled Snippet

@ini_set( 'upload_max_size' , '120M' ); @ini_set( 'post_max_size', '120M'); @ini_set( 'max_execution_time', '300' );

Require Downloadable fields - Downloadable product template

Require Downloadable fields - Downloadable product template

code at the end of the body tag

Hello, I need to include the following code at the end of the body tag of…

MemberPress: Replace Country Code with Country Name

Replaces the 2-digit country code in the {$user_address} parameter for emails with the full country name.

Changing the logo on the WordPress login page.

// Zmiana logo na stronie logowania Wordpress. add_filter( 'login_head', function () { $custom_logo = 'https://yourimageurl.com'; $logo_width…

Defining Amazon SES Constants

This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…

floating bar css

html div#om-{{id}}.CampaignType--floating { position: absolute !important; top: 0 !important; display: block !important; background: #0B8BBB !important; }

Dynamic copyright year using HTML

Adjust the styling either inline or using css

1 83 84 85 86 87 219