Pasted image and text in the editor doesn’t work

You must Add your image form Add media in text editor. After that click on image in text editor and then you fill find 5 option for image editing. There you can align image and edit image. Or it best practice to upload image from wordpress standard. The upload image will save in wp-content folder.

Removing add new pages form editor role

Ok so few things.. there’s a pretty well coded plugin that handles user roles and permissions: https://wordpress.org/plugins/user-role-editor/ If you’d like to do this programatically though, you should: <?php function wpcodex_set_capabilities(){ global $wp_roles; // global class wp-includes/capabilities.php $role=”editor”; $cap = ‘publish_pages’; $wp_roles->remove_cap( $role, $cap ); } add_action( ‘init’, ‘wpcodex_set_capabilities’ ); ?> Lmk if that does it … Read more

Preserve indentation, HTML5 shorthand in editor

Sounds like you are using the wrong software 😉 wordpress is not really designed nor should it be used as an html editor. If for whatever reason you need some concrete HTML format you should either use a shortcode to generate it or create a page template to be used in the places where it … Read more

Permanently show Custom Fields in Editor

this should work but you overwrite the values for existing objects. to add default values only for new objects try that : $postType = “tender”; add_action( ‘save_post_’ . $postType, function ($post_ID, \WP_Post $tender, $update) { if (!$update) { // default value for new object // Add the meta data you want the custom post type … Read more

incorrect url in Snippet editor

I contacted the company DesignLynx which had the plugin saying do not deactivate, they knew the issue and fixed it by removing the root relative component of framework plugin and also removed the jQuery version override. thank you for the contributions in guiding me for the fix gordon