fbcomments_admin_notice

The Facebook Comments fbcomments admin notice function.

Description

fbcomments_admin_notice(); 

Usage

  1. if ( !function_exists( 'fbcomments_admin_notice' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'facebook-comments/class-admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = fbcomments_admin_notice(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/class-admin.php  
  1. function fbcomments_admin_notice() { 
  2. $options = get_option('fbcomments'); 
  3. if ($options['appID']=="") { 
  4. $fbadminurl = get_admin_url()."options-general.php?page=fbcomments"; 
  5. echo '<div class="error"> 
  6. <p>Please enter your Facebook App ID for Facebook Comments to work properly. <a href="'.$fbadminurl.'"><input type="submit" value="Enter App ID" class="button-secondary" /></a></p> 
  7. </div>';