wpcf7_set_screen_options

The Contact Form 7 wpcf7 set screen options function.

Description

wpcf7_set_screen_options( $result, $option, $value ); 

Parameters (3)

0. $result
The result.
1. $option
The option.
2. $value
The value.

Usage

  1. if ( !function_exists( 'wpcf7_set_screen_options' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/admin/admin.php'; 
  3.  
  4. // The result. 
  5. $result = null; 
  6.  
  7. // The option. 
  8. $option = null; 
  9.  
  10. // The value. 
  11. $value = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = wpcf7_set_screen_options($result, $option, $value); 
  15.  

Defined (1)

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

/admin/admin.php  
  1. function wpcf7_set_screen_options( $result, $option, $value ) { 
  2. $wpcf7_screens = array( 
  3. 'cfseven_contact_forms_per_page' ); 
  4.  
  5. if ( in_array( $option, $wpcf7_screens ) ) { 
  6. $result = $value; 
  7.  
  8. return $result;