Amit choudhary blogs
Blogger
Disallow point redemption if cart has subscription product.
This snippet will remove the point redemption option if the cart has a subscription product
Limit Purchase Total
Sets a purchase amount and prevents customers from purchasing more than that amount at one time.
Disable Wish Lists by Category
Customize this plugin to remove wish lists from certain categories of downloads
Min-Max Product Price (with decimal support)
Add minimum/maximum validation to your product's price - with decimal support
Custom Tab Order For Dashboard
// Add this to your themes functions.php to change the order, rearrage the lines. First line…
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.
Escaping data with wp_kses
// ❌ Don't use html tags in escaping functions like esc_html, esc_attr and their localized equivalents…
Tweak Price Display (Adjusts the Prices) | Display Eventbrite Events
The Display Eventbrite plugin premium version can display prices. If you want to tweak to display…
Disable WP Texturize
// Disable curly quotes remove_filter( 'the_content', 'wptexturize' );
unitap.io
function myfirsttheme_setup() { /* * Load additional block styles. */ $styled_blocks = ['latest-comments']; foreach ( $styled_blocks…
Allow Other WordPress Roles to Manage Email Logs
This snippet will allow you to manage the capabilities of roles allowed to manage the site's…
Untitled Snippet
// Get the butterflies container const butterfliesContainer = document.querySelector('.butterflies'); // Create a function to generate a…
om-emberjs.js
// Using Ember.js. import Route from '@ember/routing/route'; export default Route.extend({ beforeModel(transition) { if (window.om5678_1234) { window.om5678_1234.reset();…