apply_filters to content but ignore shortcodes
apply_filters to content but ignore shortcodes
apply_filters to content but ignore shortcodes
problem when adding wp_editor with ajax [duplicate]
I am unable to duplicate your problem. add_action( ‘admin_menu’, function () { add_menu_page( ‘Multiple Editor Test’, ‘Multiple Editor Test’, ‘edit_posts’, ‘multiple-editor-test’, function () { foreach ( [‘a’, ‘b’, ‘c’ ] as $i ) { wp_editor( ”, ‘multiple_editor_test_’ . $i, [ ‘textarea_name’ => ‘multiple_editor_test_’ . $i, ‘textarea_rows’ => 2 ] ); } } ); } ); … Read more
I am still experiencing with this, but here is how I got rid of the unwanted text area: if ( !is_admin() ) { //you might decide to change this conditional statement. //I found the filter in /wp-includes/class-wp-editor.php @249 add_filter(‘the_editor’, ‘my_remove_editor_te’); function my_remove_editor_te(){ $editor=””; return $editor; // or simply return; } } Here is how I … Read more
WordPress stores content data as text, which is considered either valid HTML or kind of “weak” HTML (without paragraphs markup, which are added by WP in processing). There are third party alternatives (such as Markdown) and embedded options (such as latex), but in principle it is HTML. The presentational side of HTML can be changed … Read more
wp_editor function accepts (array) $settings param and that one can contain textarea_name as a key. If it’s not being specified, it’s set by default as $editor_id. See: https://github.com/WordPress/WordPress/blob/c392ff6f90d550bad876d8a984ad6b3b8a49cd96/wp-includes/class-wp-editor.php#L44 So you might want to do something like this: foreach ($get_url as $list) { … $settings = array( ‘textarea_name’ => ‘uploaded_csv[]’ ); … wp_editor( $link, $editor_id, $settings … Read more
If you were always writing in HTML, you could add the following to your functions.php file: remove_filter( ‘the_content’, ‘wpautop’ ); remove_filter( ‘the_excerpt’, ‘wpautop’ ); I do this for some of my own sites. As it sounds like you want the option to turn this on or off, you may want to try the wpautop control … Read more
Found what I was looking for here – wp_editor textarea value not updating Better late than never!
If you are calling wp_editor() in your metabox, one of the arguments that you can pass is ‘media_buttons.’
echo wp_editor to screen with formatting