web_business_meta_setup

The Business Responsive web business meta setup function.

Description

web_business_meta_setup(); 

Usage

  1. if ( !function_exists( 'web_business_meta_setup' ) ) { 
  2. require_once '/custom/meta-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = web_business_meta_setup(); 
  7.  

Defined (1)

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

/custom/meta-functions.php  
  1. function web_business_meta_setup() 
  2. global $post; 
  3.  
  4. // using an underscore, prevents the meta variable 
  5. // from showing up in the custom fields section 
  6. $meta = get_post_meta($post->ID, '_web_business_meta', TRUE); 
  7.  
  8. // instead of writing HTML here, lets do an include 
  9. include(MY_THEME_FOLDER . '/custom/meta.php'); 
  10.  
  11. // create a custom nonce for submit verification later 
  12. echo '<input type="hidden" name="web_business_meta_noncename" value="' . wp_create_nonce(__FILE__) . '" />';