layers_filter_admin_pages

The Layers layers filter admin pages function.

Description

layers_filter_admin_pages(); 

Usage

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

Defined (1)

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

/core/helpers/post.php  
  1. function layers_filter_admin_pages() { 
  2. global $typenow; 
  3.  
  4. if ( 'page' == $typenow && isset( $_GET['filter'] ) && 'layers' == $_GET['filter'] ) { 
  5. set_query_var( 
  6. 'meta_query',  
  7. array( 
  8. 'relation' => 'AND',  
  9. array( 
  10. 'key' => '_wp_page_template',  
  11. 'value' => LAYERS_BUILDER_TEMPLATE,  
  12. );