Editor’s role in WP

You are right indeed, users with the “editor” role do not have the ‘edit_theme_options’ capability, which is required to access the following: Appearance > Widgets Appearance > Menus Appearance > Customize if they are supported by the current theme Appearance > Background Appearance > Header (source) For a complete reference of roles and capabilities, and … Read more

wp_editor in text mode only(without TinyMCE)

Yes, it’s possible to set it to false. The full parameters list is in the file wp-includes/class-wp-editor.php. These are the default values for the $settings array when calling wp_editor( $content, $editor_id, $settings );: array( ‘wpautop’ => true, ‘media_buttons’ => true, ‘textarea_name’ => $editor_id, ‘textarea_rows’ => 20, ‘tabindex’ => ”, ‘tabfocus_elements’ => ‘:prev,:next’, ‘editor_css’ => ”, … Read more

allowing all HTML tags in tinymce editor

[*] Try this function from leighton.com : function override_mce_options($initArray) { $opts=”*[*]”; $initArray[‘valid_elements’] = $opts; $initArray[‘extended_valid_elements’] = $opts; return $initArray; } add_filter(‘tiny_mce_before_init’, ‘override_mce_options’); Hope that helps. [*]

wp.editor.initialize not working as expected

You can use only wp_enqueue_editor(); instead of: if ( ! class_exists( ‘_WP_Editors’, false ) ) { require( ABSPATH . WPINC . ‘/class-wp-editor.php’ ); } add_action( ‘admin_print_footer_scripts’, array( ‘_WP_Editors’, ‘print_default_editor_scripts’ ) );

Is it safe use wp_editor in public contact form

It should be fine and secure, as Horttcore mentioned it isn’t making any database or backend changes it is simply displaying the tinymce editor. There are other plugins you could use of course but I don’t see any problems doing exactly what you are doing. To answer your other question, I believe the text/visual switch … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)