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

AI

navdeep dhillon
<10

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

Expand the Edit Abilities

use Elementor\Controls_Manager; use Elementor\Group_Control_Background; function add_background_and_overlay_to_layout_tab($element, $args) { // === NORMAL BACKGROUND === $element->start_controls_section( 'custom_background_layout', […

Untitled Snippet

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

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…

1 142 143 144 145 146 230