gpi_action_ignore_page

The Google Pagespeed Insights gpi action ignore page function.

Description

gpi_action_ignore_page( $page_id, $page_report ); 

Parameters (2)

0. $page_id
The page id.
1. $page_report
The page report.

Usage

  1. if ( !function_exists( 'gpi_action_ignore_page' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-pagespeed-insights/includes/actions/ignore.php'; 
  3.  
  4. // The page id. 
  5. $page_id = null; 
  6.  
  7. // The page report. 
  8. $page_report = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = gpi_action_ignore_page($page_id, $page_report); 
  12.  

Defined (1)

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

/includes/actions/ignore.php