Disable XML-RPC
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
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 – 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 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 – 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
function walk91_force_jquery() { wp_enqueue_script(‘jquery’); } add_action(‘wp_enqueue_scripts’, ‘walk91_force_jquery’, 1);Continue reading
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