Untitled Snippet
add_filter( 'woocommerce_product_single_add_to_cart_text', 'saphie_custom_add_to_cart_text' ); add_filter( 'woocommerce_product_add_to_cart_text', 'saphie_custom_add_to_cart_text' ); function saphie_custom_add_to_cart_text() { return 'ADD TO BAG'; }
Redirecting Vendors to Vendor Dashboard on Login
Snippet To Redirect Vendors to their Dashboard on login
Add menu item to vendor dashboard
// Add this to your themes functions.php function add_menu_item( $pages ){ $pages[] = array( 'label' =>…
3 Dots for popup text in WordPress
With this snippet 3 highlighted dots appear when you create small items of text that you…
om-trigger-conversion class on submit button
First Name Email Address
Fix 500 Internal Server Error
A .htaccess file is a key file in all PHP-based applications that controls your website’s configuration.…
Disable Gutenberg Editor (use Classic Editor)
add_filter('gutenberg_can_edit_post', '__return_false', 5); add_filter('use_block_editor_for_post', '__return_false', 5);
Set the ranges for Calendar List View | Display Eventbrite Events
The following code snippet filters the valid ranges for the next/prev keys of the calendar list…
Cusdtom WP escape
One major difficulty with passing WordPress org security reviews is escaping late. This function may help.
WC Vendors Marketplace vendor's list - Change Search for a vendor
Change Search for a vendor - WC Vendors Marketplace
Tasty Roundups - Change Heading from h2 to h3
Change all your Tasty Roundup headings from h2 tags to h3 tags