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'…

Change the "Commission" header for the Recent Orders table

Change the "Commission" header for the Recent Orders table using the "wcvendors_recent_order_table_columns" filter hook.

Woocommerce category archive sort products by date by default

Change the name of the category (in this e.g. gramatas). Now it will show newest products…

AstraFormatFix

add_filter( 'astra_v4_block_editor_compat', "__return_true" );

Barry Persons
<10

Extra WordPress Filters in Pro (Do something with the ticket availability display) | Display Eventbrite Events

Using this filter, you can change the ticket availability display. filter: (‘wfea_availability_display‘ , $msg, $total_sold, $event_capacity)…

Add tracking pixel / javascript on modal checkout complete | Display Eventbrite

Enable addition javascript to be executed on Eventbrite Modal Order Complete, this can be use for…

Ultra Shop button

A button to link our shop to the Ultraceuticals Shop

Block WP-Admin Area from Non-Administrators

Prevent users who are not administrators from accessing the wp-admin area.

Defining Outlook Mailer Constants

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

MemberPress: Disable Address Fields for a Specific Membership

Note: This code will not work if ReadyLaunch™ is enabled on the registration page. The code…

1 131 132 133 134 135 227