n Name: AE Social Follow Disabler * Plugin URI: https://pushentertainment.com * Description: Disables the [ae-social-follow] shortcode by rendering nothing * Version: 1.0.0 * Author: P. Fernihough, Push Entertainment * License: GPL v2 or later */ // Prevent direct access if (!defined('ABSPATH')) { exit; } /** * Register the shortcode handler that returns empty string */ function ae_social_follow_disable_shortcode($atts, $content = null) { // Return empty string to render nothing return ''; } /** * Register shortcode with conflict detection */ function ae_social_follow_register_disabler() { global $shortcode_tags; // Check if shortcode already exists if (isset($shortcode_tags['ae-social-follow'])) { // Optionally log or notify about conflict error_log('AE Social Follow Disabler: Overriding existing ae-social-follow shortcode'); } // Register the shortcode (will override existing one) add_shortcode('ae-social-follow', 'ae_social_follow_disable_shortcode'); } // Hook to init to ensure it runs after other plugins add_action('init', 'ae_social_follow_register_disabler', 999); ELBOW_LF_outnow_fb_4 - Guy Garvey
Guy Garvey

Guy Garvey

ELBOW_LF_outnow_fb_4

ELBOW_LF_outnow_fb_4

February 3, 2017