Keep users logged in for 1 month on Staq
function stq_change_auth_cookie_expiration_period( $expiration_period ) { $expiration_period = MONTH_IN_SECONDS; // 1 month return $expiration_period; } add_filter( 'auth_cookie_expiration',…
WP Mail SMTP: specify an exact AuthType to connect to a Server.
Some SMTP servers require a very specific AuthType to connect to them in order to send…
Fully Disable Comments & Trackbacks (The "Nuclear" Option)
* Fully Disable Comments & Trackbacks (The "Nuclear" Option) * Optimized for performance and UI clarity.
Shop Manager - Reseller Admin.js
Creates a reseller admin role that has more customisation options than a normal user
product data tabs
/** * Rename product data tabs */ add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 ); function woo_rename_tabs( $tabs )…
Add the "input hidden" field type to the EDD settings
Add 'input type="hidden"' to the type of input fields available when setting up your plugin's EDD…
AffiliateWP Network Stats Shortcode
Adds an [affwp_network_stats] shortcode with type and status attributes to display individual network metrics for JetEngine…
WWPP - Restrict add-to-cart on specific products to a specific wholesale role only
How to use and configure this snippet: 1. Set your exact Role Key: In the snippet,…
Opening booking resources editor in new tab
This snippet will open the booking resources editor in a new tab instead of opening it…
WWPP - Exclude products from Cart Subtotal Price Discounts if they have an individual price or belong to a specific category
/** * Recalculate the cart subtotal discount to exclude products that: * - belong to a…
Prevent Publishing Posts with Broken Internal Links
Checks all internal links within post content before publishing. If a linked page or post returns…