Untitled Snippet

function remove_my_action() { remove_action(‘wp_head’, ‘et_add_viewport_meta’); } function custom_et_add_viewport_meta(){ echo ‘‘; } add_action( ‘init’, ‘remove_my_action’); add_action( ‘wp_head’, ‘custom_et_add_viewport_meta’ );Continue reading

Auto-link Site Name – Home Page

/** * Auto-link Site Name – Global Version * Pulls company name from Settings > General > Site Title * Pulls link title from Settings > General > Tagline */ function site_name_auto_links($content) { // Fire on all singular post types…Continue reading

Cortex Schema API

/** * Cortex Schema API v3.1 – Streamlined Schema Audit with Server-Side Filtering * * Focused schema auditing for WordPress pages. * Returns COMPLETE live-rendered schemas (local + global + auto-generated). * * v3.1 Changes: * – Added server-side filtering…Continue reading

Cortex Image Meta API

/** * Cortex Image Meta API – REST Endpoints for WordPress Image Optimization * v1.0 – Separated from Cortex SEO Meta API * * For image alt text, titles, captions, and optimization scoring. * Works with RankMath focus keywords for…Continue reading

2 month

add_action( ‘init’, ‘export_recent_completed_customers’ ); function export_recent_completed_customers() { // Check for the trigger in the URL: example.com/?export_customers=1 if ( isset( $_GET[‘export_customers’] ) && $_GET[‘export_customers’] === ‘1’ ) { // Security check: Only admins can run this if ( ! current_user_can( ‘manage_options’…Continue reading