How to add placeholder in wp_editor?

Your approach to replace <textarea with <textarea placeholder=” is correct. Just wp_editor function does not returns html code, which you can change. Function just echoes output. You can capture this output with ob_start and ob_get_clean, as described here: $wpEditorPlaceholder=”My Placeholder”; ob_start(); wp_editor( $project_description , ‘project_description’, array( ‘wpautop’ => true, ‘media_buttons’ => false, ‘textarea_name’ => ‘project_description’, … Read more

Is there a way to get wp_editor (tinymce) content?

I can’t comment yet… so I will use an answer, I think you need to do it with ‘wp_insert_post_data’ filter. You can see this in line 3523 here: https://developer.wordpress.org/reference/functions/wp_insert_post/ Your function need to have a parameter, which is an array. From there you should get the content from ‘post_content’ key. add_filter( ‘wp_insert_post_data’, ‘example’ ); function … Read more