WWS - Disable and Redirect the Wholesale Suite Dashboard
By applying the following code, you will: 1. Remove the Dashboard submenu item from the sidebar.…
Untitled Snippet
CV. ABIMACHINARY — Bengkel Maintenance & Mesin UMKM, Perkebunan & Pertanian Beranda Tentang Kami Layanan Produk…
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' );
Change Add Product button URL
Change Add Product button URL
Hotfix: Remove Stripe Statement Descriptor
In EDD 3.2.8, Easy Digital Downloads changed how Statement Descriptors are used with Stripe Payments to…
Remove image link from media uploads
Older versions of WordPress automatically linked the image to the media file.
Ultra Shop button
A button to link our shop to the Ultraceuticals Shop
efeffefef
efef
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…