// =============================== // ✅ NexSouk Performance Booster (Safe Version) // PHP performance enhancements for: // – Load speed // – Core Web Vitals // – Accessibility // =============================== add_action(‘init’, function() { // ✅ Disable Emoji Scripts (safe) remove_action(‘wp_head’, ‘print_emoji_detection_script’, 7);…Continue reading
// 1. Ensure ARIA attributes match proper roles function nexsouk_fix_aria_roles($content) { // Simplistic approach: strip aria-* from elements without proper roles // Better: adjust based on your theme/structure with context $valid_roles = array( ‘button’ => [‘aria-pressed’, ‘aria-expanded’], ‘navigation’ => [‘aria-label’,…Continue reading
/** * Wrap the thumbnail in a link to the post. * Only use this if your theme doesn’t already wrap thumbnails in a link. * * @param string $html The thumbnail HTML to wrap in an anchor. * @param…Continue reading
/** * VVWC Helper Functions */ // Elementor safety post injection (used during cron) function vvwc_inject_dummy_post_context() { if ( defined( ‘DOING_CRON’ ) && DOING_CRON ) { global $post; if ( ! isset( $post ) || ! $post instanceof WP_Post )…Continue reading
// Remove the default add to cart button remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 ); // Add custom add to cart form for both simple and variable products add_action( ‘woocommerce_after_shop_loop_item’, ‘custom_add_to_cart_form_on_shop_page’, 10 ); function custom_add_to_cart_form_on_shop_page() { global $product; if ( $product->is_type( ‘simple’…Continue reading
/* Plugin Name: Daily Cleanup with Report Description: Deletes standard blog posts, categories, and tags daily, stores summary data for digest reporting, and avoids interfering with WPCode or other plugin taxonomies. Version: 1.9 */ function delete_all_posts_categories_tags_with_report() { global $wpdb; //…Continue reading
// Snippet by MI team – start. add_action(‘woocommerce_after_single_product’, function() { if (class_exists(‘MonsterInsights_eCommerce_WooCommerce_Integration’)) { $mi_ec_woo = MonsterInsights_eCommerce_WooCommerce_Integration::get_instance(); if (method_exists($mi_ec_woo, ‘product_detail’)) { $mi_ec_woo->product_detail(); } } }); // Snippet by MI team – end.Continue reading
/* Plugin Name: VVWC Daily Digest Composer Description: Composes and sends a daily email summary after cleanup and purge routines. Uses external helper for Elementor-safe context injection. Version: 2.3 */ function send_daily_vvwc_digest_email() { // 🔒 Suppress warnings and inject dummy…Continue reading
// Register Custom Post Type function create_changelog_cpt() { $labels = array( ‘name’ => _x( ‘Changelogs’, ‘Post Type General Name’, ‘text_domain’ ), ‘singular_name’ => _x( ‘Changelog’, ‘Post Type Singular Name’, ‘text_domain’ ), ‘menu_name’ => __( ‘Changelogs’, ‘text_domain’ ), ‘name_admin_bar’ => __(…Continue reading