Support

Account

Home Forums Backend Issues (wp-admin) Changing the Blogname Reply To: Changing the Blogname

  • The following code checks if the ACF Pro or ACF plugins are not activated.

    /* Checks to see if "is_plugin_active" function exists and if not load the php file that includes that function */
    if ( ! function_exists( 'is_plugin_active' ) ) {
    	include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 
    }
    
    /* Checks to see if the acf pro plugin is not activated  */
    if ( !is_plugin_active('advanced-custom-fields-pro/acf.php') )  {
     /* Do something when not active */
    }
    
    /* Checks to see if the acf plugin is not activated  */
    if ( !is_plugin_active('advanced-custom-fields/acf.php') )  {
      /* Do something when not active */
    }