Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. <?php
  2.  
  3. $option = get_option('lm_options');
  4. $entry_value = isset($args['uid']) ? $args['uid'] : $args['default'];
  5. $value = isset($option[$entry_value]) ? $option[$entry_value] : $args['default'];
  6. $option_name = 'lm_options';
  7.  
  8. switch ($args['type'])
  9. {
  10.     // Additional Switch
  11.     case : 'wysiwyg' :
  12.     wp_editor( $value, $args['uid'], $settings = ['textarea_name' => "{$option_name}[{$args['uid']}]", 'textarea_rows'=> '10', 'media_buttons' => false] );
  13.     break;
  14.     // Continued Switch
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement