epm_textarea_callback

Textarea Callback.

Description

epm_textarea_callback( $args ); 

Parameters (1)

0. $args
The args.

Usage

  1. if ( !function_exists( 'epm_textarea_callback' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'easy-peasy-mailchimp-ajax-form/includes/admin/settings/register-settings.php'; 
  3.  
  4. // The args. 
  5. $args = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = epm_textarea_callback($args); 
  9.  

Defined (1)

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

/includes/admin/settings/register-settings.php  
  1. function epm_textarea_callback( $args ) { 
  2. global $epm_options; 
  3.  
  4. if ( isset( $epm_options[ $args['id'] ] ) ) 
  5. $value = $epm_options[ $args['id'] ]; 
  6. else 
  7. $value = isset( $args['std'] ) ? $args['std'] : ''; 
  8.  
  9. $size = ( isset( $args['size'] ) && ! is_null( $args['size'] ) ) ? $args['size'] : 'regular'; 
  10. $html = '<textarea class="large-text" cols="50" rows="5" id="epm_settings[' . $args['id'] . ']" name="epm_settings[' . $args['id'] . ']">' . esc_textarea( stripslashes( $value ) ) . '</textarea>'; 
  11. $html .= '<label for="epm_settings[' . $args['id'] . ']"> ' . $args['desc'] . '</label>'; 
  12.  
  13. echo $html;