layers_add_new_page_admin_menu

The Layers layers add new page admin menu function.

Description

layers_add_new_page_admin_menu(); 

Usage

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

Defined (1)

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

/core/helpers/post.php  
  1. function layers_add_new_page_admin_menu() { 
  2. global $wp_admin_bar, $post; 
  3.  
  4. $args = array( 
  5. 'parent' => 'new-content',  
  6. 'id' => 'layers-add-page',  
  7. 'title' =>__( 'Layers Page' , 'layerswp' ),  
  8. 'href' => admin_url( 'admin.php?page=layers-add-new-page' ) 
  9. ); 
  10. $wp_admin_bar->add_node( $args );