Failed login: Don't show if username is correct
If a user's login fails, don't tell them whether the username or password was incorrect
Local pickup custom percentage discount in WooCommerce checkout
Offering discounts for local pickup is a great way to attract customers who are looking for…
Allow SVG uploads for administrator users.
Allow SVG uploads for administrator users.
Buy with Prime
add_action( ‘woocommerce_after_add_to_cart_form’, ‘QL_add_text_under_add_to_cart’ ); function QL_add_text_under_add_to_cart () { global $product; ?>
FlowMattic: Expand Workflow Description Box.
This snippet runs in the WordPress admin area and removes any line-clamping on the “.css-iIDhdyB” element…
MemberPress: Disable MemberPress Protection On Posts with Specific Tags
This code snippet disables content protection for posts that are tagged with a specific term (e.g.,…
use login
this is a login of user
Disable XML-RPC (copy)
On sites running WordPress 3.5+, disable XML-RPC completely.
MemberPress: Restrict Purchase of a Specific Membership Based on Existing Subscriptions
This code snippet restricts the purchase of a specified MemberPress membership (restricted membership), based on a…
Restrict payment methods based on cart total
Restrict payment methods based on cart total
Database connection test snippet
A snippet to test the connection to the database.
om.Dtr.init
document.addEventListener('om.Dtr.init', function(event) { console.log(event.detail.Dtr); console.log(event.detail.Campaign); // Registers a custom `name` smart tag. event.detail.Dtr.setCustomVariable('name', 'Thomas'); } );
om.Action.init
document.addEventListener('om.Action.init', function(event) { console.log(event.detail.Action); console.log(event.detail.Campaign); } );