bbp_form_option

Output settings API option.

Description

bbp_form_option( (string) $option, (string) $default = '', (bool) $slug = false ); 

Parameters (3)

0. $option (string)
The option.
1. $default — Optional. (string) => ''
The default.
2. $slug — Optional. (bool) => false
The slug.

Usage

  1. if ( !function_exists( 'bbp_form_option' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/admin/settings.php'; 
  3.  
  4. // The option. 
  5. $option = ''; 
  6.  
  7. // The default. 
  8. $default = ''; 
  9.  
  10. // The slug. 
  11. $slug = false; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bbp_form_option($option, $default, $slug); 
  15.  

Defined (1)

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

/includes/admin/settings.php  
  1. function bbp_form_option( $option, $default = '' , $slug = false ) { 
  2. echo bbp_get_form_option( $option, $default, $slug );