Function Reference: geodir_enable_editor_on_notifications
Summary
Converts textarea field to WYSIWYG editor on Notification settings.
Description
WP Admin -> Geodirectory -> Notifications.
Package
GeoDirectory
Parameters
- $notification
- (array) (required) The notification settings array.
- Default: None
Return Values
- (array)
- Modified notification settings array.
Change Log
Since: 1.0.0
Source File
geodir_enable_editor_on_notifications() is located in geodirectory-admin/admin_hooks_actions.php [Line: 325]
Source Code
function geodir_enable_editor_on_notifications($notification) { if (!empty($notification) && get_option('geodir_tiny_editor') == '1') { foreach ($notification as $key => $value) { if ($value['type'] == 'textarea') $notification[$key]['type'] = 'editor'; } } return $notification; }