fbc_metabox

The Facebook Comments fbc metabox function.

Description

fbc_metabox( $post ); 

Parameters (1)

0. $post
The post.

Usage

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

Defined (1)

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

/class-admin.php  
  1. function fbc_metabox( $post ) { 
  2. wp_nonce_field( plugin_basename( __FILE__ ), 'fbc_noncename' ); 
  3. $_disable_fbc = get_post_meta( get_the_ID(), $key = '_disable_fbc', $single = true ); 
  4. ?> 
  5. <input id="_disable_fbc" name="_disable_fbc" type="checkbox" value="on" <?php checked('on', $_disable_fbc); ?> /> <label for="_disable_fbc"><strong>DISABLE</strong> Facebook Comments</label></td> 
  6. <?php