Login Restrict
Login Restrict
Enable JSON and SVG uploads for administrator users only
/** * Enable JSON and SVG uploads for administrator users only. */ add_filter( 'upload_mimes', function (…
Prevent Powerpack Off Canvas from Breaking JavaScript loading
This prevents issues with Woo Block checkout loading credit card fields and other functionality breaking with…
ACF_KEYSMST_MSTCASECPT – TAB - MST FIDELITY TRACKING (v3.0 Modular)
/** * ============================================ * MST CASE - TAB: MST FIDELITY TRACKING (v3.0 Modular) * ============================================ *…
WpPages_DIR_AA_CPT - WordPress Pages Sync CPT Registration
* Description: Registers custom post type for WordPress pages data with full REST API support *…
WPCode Snippet: Download All Snippets Button
* Description: Adds bulk download button to WPCode Snippets Sync admin page * Location: Admin Only…
Force localized currency for product feeds
This allows you to change the ISO 4217 for all the product feeds
Add Your Own Custom Fields to Events
Sugar Calendar has no custom fields UI, so there is no built-in way to store something…
Remove Dashboard Widget
Remove default dashboard widget for everyone.
Sort Events Category by Publish Date (Oldest First)
function sort_posts_by_category($query) { if ($query->is_main_query() && !is_admin()) { $oldest_first_categories = array(1483,1486,1485,1484,1482,1391); // Replace with the IDs…
Untitled Snippet
add_filter( 'aioseo_robots_meta', 'aioseo_filter_robots_meta' ); function aioseo_filter_robots_meta( $attributes ) { $url = home_url( $_SERVER['REQUEST_URI'] ); if (strpos($url,'product_search=')…
Pre-approval Emails
Email the admin and customer when a pre-approval payment has been made.