disable the post title field after publishing

Use the action hook edit_form_after_title The display:none rule might cause some JS issue so it might be best to use visibility:hidden so the element is still accessible to whatever scripts in the DOM. This condition will hide the form fields and show the title and URL statically. add_action(‘edit_form_after_title’, function($post) { if( !empty($post->post_title) && !current_user_can(‘manage_options’) ) … Read more

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

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