gde_profile_option
The Google Doc Embedder gde profile option function.
Description
Parameters (4)
- 0. $option
- The option.
- 1. $value
- The value.
- 2. $label
- The label.
- 3. $helptext — Optional. (string) =>
''
- The helptext.
Usage
if ( !function_exists( 'gde_profile_option' ) ) { require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/options.php'; } // The option. $option = null; // The value. $value = null; // The label. $label = null; // The helptext. $helptext = ''; // NOTICE! Understand what this does before running. $result = gde_profile_option($option, $value, $label, $helptext);
Defined (1)
The function is defined in the following location(s).
- /options.php
- function gde_profile_option( $option, $value, $label, $helptext = '' ) {
- echo "<option value=\"$value\"";
- if ( ! empty( $helptext ) ) {
- echo " title=\"$helptext\"";
- }
- if ( $option == $value ) {
- echo ' selected="selected"';
- }
- echo ">$label </option>\n";
- }