Tag Info

New answers tagged


is_plugin_active() only available inside the admin area. You need to include the core plugin.php file in front end to use this function. From WordPress documentation NOTE: defined in wp-admin/includes/plugin.php, so this is only available from within the admin pages, and any references to this function must be hooked to admin_init or a later action. ...


Try to check class_exists: <?php if( class_exists('acf') ) { echo "hi"; } ?>

Top 50 recent answers are included