How do I disable the changing of the permalink for published posts (for non-admin)?

You could do something like the following, this should go in your Child Theme’s functions.php or if not using a Child Theme then add to a custom plugin: function hide_permalink_metabox( $is_post_edit_page ) { if ( !current_user_can(‘update_core’) ) { // allows Admins to edit the permalink echo ‘<style> div#edit-slug-box {display:none!important;} </style>’; } You may need to … Read more

Is there a way to assign a default Category to a Post when the user creates a new Post?

WordPress presents default category as a setting in Settings -> Writing (though this doesn’t seem to pre-check the checkbox): The new_to_auto-draft action will allow you to do things to a new post before the page loads, and does pre-check the checkbox (tested): add_action( ‘new_to_auto-draft’, static function ( $post ) { $default_category_id = 25; // The … Read more

Removing Default Panels From Gutenberg Document Setting Panel (sidebar)

import { store as editPostStore } from ‘@wordpress/edit-post’; Is not the same as const { editPostStore } = wp.editPost.store; In the first line store is editPostStore, but in your second line editPostStore is a property of store, but it doesn’t exist. The correct syntax is const editPostStore = wp.editPost.store; Or const { store: editPostStore } … Read more

Edit a page/post DB data?

There is no built-in way to directly edit the database data for a page or its revisions in WordPress. However, you can achieve this by using a plugin such as WP-DB Manager, which provides a user-friendly interface for managing and editing your WordPress database. This plugin allows you to directly edit the database data for … Read more

Disable “Quick edit” for roles in WP dashboard

I hope you need to disable “Edit” and “Quick Edit” for non-admin roles. So you can modify your code as follows function remove_quick_edit( $actions ) { unset($actions[‘edit’]); unset($actions[‘inline hide-if-no-js’]); return $actions; } if ( ! current_user_can(‘manage_options’) ) { add_filter(‘post_row_actions’,’remove_quick_edit’,10,1); }

Bullet points not showing in wordpress

In the Additional CSS for your theme, add the CSS code for ‘list-style-type’ for unordered list. Something like: ul { list-style-type: circle; } Note that this will affect all unordered lists on your site. Take a look at this page for other options: https://www.w3schools.com/css/css_list.asp Added Note that your theme may be using additional CSS that … Read more