otw_add_custom_box

Adds a box to the main column on the Post and Page edit screens.

Description

otw_add_custom_box(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function otw_add_custom_box() { 
  2. $screens = array( 'post', 'page' ); 
  3. foreach ($screens as $screen) { 
  4. add_meta_box( 
  5. 'otw_sectionid',  
  6. __( 'Page title setting', 'otw-carbon-light' ),  
  7. $screen,  
  8. 'side' 
  9. );