Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $option = get_option('lm_options');
- $entry_value = isset($args['uid']) ? $args['uid'] : $args['default'];
- $value = isset($option[$entry_value]) ? $option[$entry_value] : $args['default'];
- $option_name = 'lm_options';
- switch ($args['type'])
- {
- // Additional Switch
- case : 'wysiwyg' :
- wp_editor( $value, $args['uid'], $settings = ['textarea_name' => "{$option_name}[{$args['uid']}]", 'textarea_rows'=> '10', 'media_buttons' => false] );
- break;
- // Continued Switch
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement