'Showcase', 'azlinkpro_showcase_grid' => 'Showcase', 'azlinkpro_pros_cons' => 'Pros & Cons card', 'azlinkpro_procon' => 'Pros & Cons card', ); foreach ($tags as $tag => $label) { if (shortcode_exists($tag)) { continue; } add_shortcode($tag, function () use ($label) { if (!current_user_can('edit_posts')) { return ''; } $feature = $label === 'Showcase' ? 'showcase' : 'pros_cons'; return '
' . esc_html('AzlinkPRO ' . $label . ' (only you can see this note): ' . azlinkpro_upgrade_message($feature, $label . 's')) . '
'; }); } } // After the modules have registered their own shortcodes. add_action('init', 'azlinkpro_fallback_shortcodes', 99);