web_dor_web_business_meta_init

The Business Responsive web dor business meta init function.

Description

web_dor_web_business_meta_init(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function web_dor_web_business_meta_init() 
  2. // review the function reference for parameter details 
  3. // http://codex.wordpress.org/Function_Reference/wp_enqueue_script 
  4. // http://codex.wordpress.org/Function_Reference/wp_enqueue_style 
  5.  
  6. wp_enqueue_script('web_business_meta_js', MY_THEME_PATH . '/custom/meta.js', array('jquery')); 
  7. wp_enqueue_style('web_business_meta_css', MY_THEME_PATH . '/custom/meta.css'); 
  8.  
  9. // review the function reference for parameter details 
  10. // http://codex.wordpress.org/Function_Reference/add_meta_box 
  11.  
  12. foreach (array('post', 'page') as $type) { 
  13. add_meta_box('web_business_all_meta', 'Web Business Custom Meta Box', 'web_dor_meta_setup', $type, 'normal', 'high'); 
  14.  
  15. add_action('save_post', 'web_dor_meta_save');