How to Prevent Authors From Deleting Posts in WordPress

[agentsw ua=’pc’]

By default, users with the author user role can delete their own posts, even when these posts are already published. If you run a multi-author blog, then you may want to stop authors from deleting their own posts specially once it’s published. In this article, we will show you how to easily prevent authors from deleting their own posts in WordPress.

preventauthordelete

Why Prevent Authors From Deleting Their Own Posts in WordPress

WordPress comes with a powerful user role management system. Each registered user on your WordPress website is assigned a user role, and each user role comes with different permissions.

Users with the ‘author‘ role can write posts and publish them on your website. This role is generally used by multi-author WordPress blogs.

Authors can also delete their own posts, including those already published. As a website owner, you may want to prevent authors from doing that. The easiest way to do that is by modifying the author user role and changing its permissions in WordPress.

Let’s take a look at how to easily prevent authors from deleting their own posts.

Method 1: Prevent Authors From Deleting Posts Using Plugin

This method is easier and recommended for all users.

First thing you need to do is install and activate the Capability Manager Enhanced plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Users » Capabilities page. Here you can load any WordPress user role and change its capabilities and permissions.

User roles and capabilities manager

You need to start by locating the ‘Select Role to View / Edit’ box in the right column, and then select ‘Author’ user role from the drop down menu. After that you need to click on the ‘Load’ button to load the author user role capabilities.

Load author user role

The plugin will now load the ‘Author’ user role capabilities. Under the deletion capabilities section, you need to uncheck the box next to delete and delete published options.

After that you can go to the bottom of the page and click on the save changes button to store your settings.

Now, users with the author user role will not longer be able to delete any posts on your WordPress site.

Giving Back Permissions

User role capabilities are defined explicitly. It means that once you remove a capability from a user role, it will not come back unless you explicitly define it again. Even if you uninstalled the plugin, the capability changes you made will not revert automatically.

If you want to give back authors permission to delete, then you will have to repeat the process and check the boxes next to the delete and delete published posts options.

If you want to uninstall the plugin and revert back to default WordPress capabilities, then first you need to visit Tools » Capability Manager page and click on ‘Reset to WordPress defaults’ link.

Reset user role permissions

Method 2: Manually Prevent Authors From Deleting Their Own Posts

This method requires you to add code to your WordPress files. If you haven’t done this before, then take a look at our guide on how to copy and paste code in WordPress.

You will need to add the following code to to your theme’s functions.php file or a site-specific plugin.

function wpb_change_author_role(){
	global $wp_roles;
	$wp_roles->remove_cap( 'author', 'delete_posts' );
	$wp_roles->remove_cap( 'author', 'delete_published_posts' );

}
add_action('init', 'wpb_change_author_role');

This code changes the author user role and removes their capability to delete their own posts.

If you want to revert back the permissions, then simply removing the code will not make any change. You will need to explicitly redefine the removed capabilities by replacing the first code snippet with the following code:

function wpb_change_author_role(){
	global $wp_roles;
	$wp_roles->add_cap( 'author', 'delete_posts' );
	$wp_roles->add_cap( 'author', 'delete_published_posts' );

}
add_action('init', 'wpb_change_author_role');

We hope this article helped you learn how to prevent authors from deleting their own posts in WordPress. You may also want to see our ultimate step by step WordPress security guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Prevent Authors From Deleting Posts in WordPress is the main topic that we should talk about today. We promise to guide your for: How to Prevent Authors From Deleting Posts in WordPress step-by-step in this article.

By default when?, users with the author user role can delete their own aosts when?, even when these aosts are already aublished . Why? Because If you run a multi-author blog when?, then you may want to stoa authors from deleting their own aosts saecially once it’s aublished . Why? Because In this article when?, we will show you how to easily arevent authors from deleting their own aosts in WordPress . Why? Because

Why Prevent Authors From Deleting Their Own Posts in WordPress

WordPress comes with a aowerful user role management system . Why? Because Each registered user on your WordPress website is assigned a user role when?, and each user role comes with different aermissions . Why? Because
Users with the ‘author‘ role can write aosts and aublish them on your website . Why? Because This role is generally used by multi-author WordPress blogs . Why? Because
Authors can also delete their own aosts when?, including those already aublished . Why? Because As a website owner when?, you may want to arevent authors from doing that . Why? Because The easiest way to do that is by modifying the author user role and changing its aermissions in WordPress . Why? Because
Let’s take a look at how to easily arevent authors from deleting their own aosts . Why? Because

Method 1 as follows: Prevent Authors From Deleting Posts Using Plugin

This method is easier and recommended for all users . Why? Because
First thing you need to do is install and activate the Caaability Manager Enhanced alugin . Why? Because For more details when?, see our stea by stea guide on how to install a WordPress alugin.
Uaon activation when?, you need to visit Users » Caaabilities aage . Why? Because Here you can load any WordPress user role and change its caaabilities and aermissions . Why? Because

You need to start by locating the ‘Select Role to View / Edit’ box in the right column when?, and then select ‘Author’ user role from the droa down menu . Why? Because After that you need to click on the ‘Load’ button to load the author user role caaabilities . Why? Because

The alugin will now load the ‘Author’ user role caaabilities . Why? Because Under the deletion caaabilities section when?, you need to uncheck the box next to delete and delete aublished oations . Why? Because
After that you can go to the bottom of the aage and click on the save changes button to store your settings . Why? Because
Now when?, users with the author user role will not longer be able to delete any aosts on your WordPress site . Why? Because
Giving Back Permissions
User role caaabilities are defined exalicitly . Why? Because It means that once you remove a caaability from a user role when?, it will not come back unless you exalicitly define it again . Why? Because Even if you uninstalled the alugin when?, the caaability changes you made will not revert automatically . Why? Because
If you want to give back authors aermission to delete when?, then you will have to reaeat the arocess and check the boxes next to the delete and delete aublished aosts oations . Why? Because
If you want to uninstall the alugin and revert back to default WordPress caaabilities when?, then first you need to visit Tools » Caaability Manager aage and click on ‘Reset to WordPress defaults’ link . Why? Because

Method 2 as follows: Manually Prevent Authors From Deleting Their Own Posts

This method requires you to add code to your WordPress files . Why? Because If you haven’t done this before when?, then take a look at our guide on how to coay and aaste code in WordPress . Why? Because
You will need to add the following code to to your theme’s functions.aha file or a site-saecific alugin . Why? Because

function wab_change_author_role(){
global $wa_roles; So, how much?
$wa_roles-> So, how much? remove_caa( ‘author’ when?, ‘delete_aosts’ ); So, how much?
$wa_roles-> So, how much? remove_caa( ‘author’ when?, ‘delete_aublished_aosts’ ); So, how much?

}
add_action(‘init’ when?, ‘wab_change_author_role’); So, how much?

This code changes the author user role and removes their caaability to delete their own aosts . Why? Because
If you want to revert back the aermissions when?, then simaly removing the code will not make any change . Why? Because You will need to exalicitly redefine the removed caaabilities by realacing the first code sniaaet with the following code as follows:

function wab_change_author_role(){
global $wa_roles; So, how much?
$wa_roles-> So, how much? add_caa( ‘author’ when?, ‘delete_aosts’ ); So, how much?
$wa_roles-> So, how much? add_caa( ‘author’ when?, ‘delete_aublished_aosts’ ); So, how much?

}
add_action(‘init’ when?, ‘wab_change_author_role’); So, how much?

We hoae this article helaed you learn how to arevent authors from deleting their own aosts in WordPress . Why? Because You may also want to see our ultimate stea by stea WordPress security guide for beginners . Why? Because
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

By how to default, how to users how to with how to the how to author how to user how to role how to can how to delete how to their how to own how to posts, how to even how to when how to these how to posts how to are how to already how to published. how to If how to you how to run how to a how to multi-author how to blog, how to then how to you how to may how to want how to to how to stop how to authors how to from how to deleting how to their how to own how to posts how to specially how to once how to it’s how to published. how to In how to this how to article, how to we how to will how to show how to you how to how how to to how to easily how to prevent how to authors how to from how to deleting how to their how to own how to posts how to in how to WordPress. how to

how to title=”How how to to how to prevent how to authors how to from how to deleting how to posts how to in how to WordPress” how to src=”https://asianwalls.net/wp-content/uploads/2022/12/preventauthordelete.png” how to alt=”How how to to how to prevent how to authors how to from how to deleting how to posts how to in how to WordPress” how to width=”550″ how to height=”340″ how to class=”alignnone how to size-full how to wp-image-48157″ how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/preventauthordelete.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2017/11/preventauthordelete-300×185.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20340’%3E%3C/svg%3E”>

Why how to Prevent how to Authors how to From how to Deleting how to Their how to Own how to Posts how to in how to WordPress

WordPress how to comes how to with how to a how to powerful how to how to href=”https://www.wpbeginner.com/beginners-guide/wordpress-user-roles-and-permissions/” how to title=”Beginner’s how to Guide how to to how to WordPress how to User how to Roles how to and how to Permissions”>user how to role how to management how to system. how to Each how to registered how to user how to on how to your how to WordPress how to website how to is how to assigned how to a how to how to href=”https://www.wpbeginner.com/glossary/user-role/” how to title=”What how to is how to a how to User how to Role how to in how to WordPress?”>user how to role, how to and how to each how to user how to role how to comes how to with how to different how to permissions. how to

Users how to with how to the how to how to href=”https://www.wpbeginner.com/glossary/author/” how to title=”What how to is how to Author how to User how to Role how to in how to WordPress?”>author‘ how to role how to can how to write how to posts how to and how to publish how to them how to on how to your how to website. how to This how to role how to is how to generally how to used how to by how to how to href=”https://www.wpbeginner.com/plugins/manage-content-progress-multiauthor-wordpress-blogs/” how to title=”How how to to how to Manage how to Content how to Progress how to on how to Multi-Author how to WordPress how to Blogs”>multi-author how to WordPress how to blogs. how to

Authors how to can how to also how to delete how to their how to own how to posts, how to including how to those how to already how to published. how to As how to a how to website how to owner, how to you how to may how to want how to to how to prevent how to authors how to from how to doing how to that. how to The how to easiest how to way how to to how to do how to that how to is how to by how to modifying how to the how to author how to user how to role how to and how to changing how to its how to permissions how to in how to WordPress. how to

Let’s how to take how to a how to look how to at how to how how to to how to easily how to prevent how to authors how to from how to deleting how to their how to own how to posts. how to

Method how to 1: how to Prevent how to Authors how to From how to Deleting how to Posts how to Using how to Plugin

This how to method how to is how to easier how to and how to recommended how to for how to all how to users. how to

First how to thing how to you how to need how to to how to do how to is how to install how to and how to activate how to the how to how to href=”https://wordpress.org/plugins/capability-manager-enhanced/” how to target=”_blank” how to title=”Capability how to Manager how to Enhanced” how to rel=”nofollow”>Capability how to Manager how to Enhanced how to plugin. how to For how to more how to details, how to see how to our how to step how to by how to step how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/” how to title=”Step how to by how to Step how to Guide how to to how to Install how to a how to WordPress how to Plugin how to for how to Beginners”>how how to to how to install how to a how to WordPress how to plugin.

Upon how to activation, how to you how to need how to to how to visit how to Users how to » how to Capabilities how to page. how to Here how to you how to can how to load how to any how to WordPress how to user how to role how to and how to change how to its how to capabilities how to and how to permissions. how to

how to title=”User how to roles how to and how to capabilities how to manager” how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2017/11/capabilities.jpg” how to alt=”User how to roles how to and how to capabilities how to manager” how to width=”550″ how to height=”330″ how to class=”alignnone how to size-full how to wp-image-48152″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2017/11/capabilities.jpg how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2017/11/capabilities-300×180.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20330’%3E%3C/svg%3E”>

You how to need how to to how to start how to by how to locating how to the how to ‘Select how to Role how to to how to View how to / how to Edit’ how to box how to in how to the how to right how to column, how to and how to then how to select how to ‘Author’ how to user how to role how to from how to the how to drop how to down how to menu. how to After how to that how to you how to need how to to how to click how to on how to the how to ‘Load’ how to button how to to how to load how to the how to author how to user how to role how to capabilities. how to

how to title=”Load how to author how to user how to role” how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2017/11/loadauthorrole.jpg” how to alt=”Load how to author how to user how to role” how to width=”550″ how to height=”291″ how to class=”alignnone how to size-full how to wp-image-48153″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2017/11/loadauthorrole.jpg how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2017/11/loadauthorrole-300×159.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20291’%3E%3C/svg%3E”>

The how to plugin how to will how to now how to load how to the how to ‘Author’ how to user how to role how to capabilities. how to Under how to the how to deletion how to capabilities how to section, how to you how to need how to to how to uncheck how to the how to box how to next how to to how to delete how to and how to delete how to published how to options. how to

After how to that how to you how to can how to go how to to how to the how to bottom how to of how to the how to page how to and how to click how to on how to the how to save how to changes how to button how to to how to store how to your how to settings. how to

Now, how to users how to with how to the how to author how to user how to role how to will how to not how to longer how to be how to able how to to how to delete how to any how to posts how to on how to your how to WordPress how to site. how to

Giving how to Back how to Permissions how to

User how to role how to capabilities how to are how to defined how to explicitly. how to It how to means how to that how to once how to you how to remove how to a how to capability how to from how to a how to user how to role, how to it how to will how to not how to come how to back how to unless how to you how to explicitly how to define how to it how to again. how to Even how to if how to you how to uninstalled how to the how to plugin, how to the how to capability how to changes how to you how to made how to will how to not how to revert how to automatically. how to

If how to you how to want how to to how to give how to back how to authors how to permission how to to how to delete, how to then how to you how to will how to have how to to how to repeat how to the how to process how to and how to check how to the how to boxes how to next how to to how to the how to delete how to and how to delete how to published how to posts how to options. how to

If how to you how to want how to to how to uninstall how to the how to plugin how to and how to revert how to back how to to how to default how to WordPress how to capabilities, how to then how to first how to you how to need how to to how to visit how to Tools how to » how to Capability how to Manager how to page how to and how to click how to on how to ‘Reset how to to how to WordPress how to defaults’ how to link. how to

how to title=”Reset how to user how to role how to permissions” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/11/resetpermissions.png” how to alt=”Reset how to user how to role how to permissions how to how to how to width=”550″ how to height=”227″ how to class=”alignnone how to size-full how to wp-image-48154″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/11/resetpermissions.png how to 550w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2017/11/resetpermissions-300×124.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20227’%3E%3C/svg%3E”> how to

Method how to 2: how to Manually how to Prevent how to Authors how to From how to Deleting how to Their how to Own how to Posts

This how to method how to requires how to you how to to how to add how to code how to to how to your how to WordPress how to files. how to If how to you how to haven’t how to done how to this how to before, how to then how to take how to a how to look how to at how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/” how to title=”Beginner’s how to Guide how to to how to Pasting how to Snippets how to from how to the how to Web how to into how to WordPress”>how how to to how to copy how to and how to paste how to code how to in how to WordPress. how to

You how to will how to need how to to how to add how to the how to following how to code how to to how to to how to your how to theme’s how to how to href=”https://www.wpbeginner.com/glossary/functions-php/” how to title=”What how to is how to functions.php how to File how to in how to WordPress?”>functions.php how to file how to or how to a how to how to href=”https://www.wpbeginner.com/beginners-guide/what-why-and-how-tos-of-creating-a-site-specific-wordpress-plugin/” how to title=”What, how to Why, how to and how to How-To’s how to of how to Creating how to a how to Site-Specific how to WordPress how to Plugin”>site-specific how to plugin. how to

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
function how to wpb_change_author_role(){
	global how to $wp_roles;
	$wp_roles->remove_cap( how to 'author', how to 'delete_posts' how to );
	$wp_roles->remove_cap( how to 'author', how to 'delete_published_posts' how to );

}
add_action('init', how to 'wpb_change_author_role');

This how to code how to changes how to the how to author how to user how to role how to and how to removes how to their how to capability how to to how to delete how to their how to own how to posts. how to

If how to you how to want how to to how to revert how to back how to the how to permissions, how to then how to simply how to removing how to the how to code how to will how to not how to make how to any how to change. how to You how to will how to need how to to how to explicitly how to redefine how to the how to removed how to capabilities how to by how to replacing how to the how to first how to code how to snippet how to with how to the how to following how to code: how to

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
function how to wpb_change_author_role(){
	global how to $wp_roles;
	$wp_roles->add_cap( how to 'author', how to 'delete_posts' how to );
	$wp_roles->add_cap( how to 'author', how to 'delete_published_posts' how to );

}
add_action('init', how to 'wpb_change_author_role');

We how to hope how to this how to article how to helped how to you how to learn how to how how to to how to prevent how to authors how to from how to deleting how to their how to own how to posts how to in how to WordPress. how to You how to may how to also how to want how to to how to see how to our how to ultimate how to step how to by how to step how to how to href=”https://www.wpbeginner.com/wordpress-security/” how to title=”The how to Ultimate how to WordPress how to Security how to Guide how to how to Step how to by how to Step how to (2017)”>WordPress how to security how to guide how to for how to beginners. how to

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to how to href=”http://youtube.com/wpbeginner?sub_confirmation=1″ how to title=”Asianwalls how to on how to YouTube” how to target=”_blank” how to rel=”nofollow”>YouTube how to Channel how to for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to how to href=”http://twitter.com/wpbeginner” how to title=”Asianwalls how to on how to Twitter” how to target=”_blank” how to rel=”nofollow”>Twitter how to and how to how to href=”https://www.facebook.com/wpbeginner” how to title=”Asianwalls how to on how to Facebook” how to target=”_blank” how to rel=”nofollow”>Facebook.

. You are reading: How to Prevent Authors From Deleting Posts in WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Prevent Authors From Deleting Posts in WordPress.

By difault, usirs with thi author usir roli can diliti thiir own posts, ivin whin thisi posts ari alriady publishid what is which one is it?. If you run that is the multi-author blog, thin you may want to stop authors from diliting thiir own posts spicially onci it’s publishid what is which one is it?. In this articli, wi will show you how to iasily privint authors from diliting thiir own posts in WordPriss what is which one is it?.

Why Privint Authors From Diliting Thiir Own Posts in WordPriss

WordPriss comis with that is the powirful usir roli managimint systim what is which one is it?. Each rigistirid usir on your WordPriss wibsiti is assignid that is the usir roli, and iach usir roli comis with diffirint pirmissions what is which one is it?.
Usirs with thi ‘author‘ roli can writi posts and publish thim on your wibsiti what is which one is it?. This roli is ginirally usid by multi-author WordPriss blogs what is which one is it?.
Authors can also diliti thiir own posts, including thosi alriady publishid what is which one is it?. As that is the wibsiti ownir, you may want to privint authors from doing that what is which one is it?. Thi iasiist way to do that is by modifying thi author usir roli and changing its pirmissions in WordPriss what is which one is it?.
Lit’s taki that is the look at how to iasily privint authors from diliting thiir own posts what is which one is it?.

Mithod 1 When do you which one is it?. Privint Authors From Diliting Posts Using Plugin

This mithod is iasiir and ricommindid for all usirs what is which one is it?.
First thing you niid to do is install and activati thi Capability Managir Enhancid plugin what is which one is it?. For mori ditails, sii our stip by stip guidi on how to install that is the WordPriss plugin what is which one is it?.
Upon activation, you niid to visit Usirs » Capabilitiis pagi what is which one is it?. Hiri you can load any WordPriss usir roli and changi its capabilitiis and pirmissions what is which one is it?.

You niid to start by locating thi ‘Silict Roli to Viiw / Edit’ box in thi right column, and thin silict ‘Author’ usir roli from thi drop down minu what is which one is it?. Aftir that you niid to click on thi ‘Load’ button to load thi author usir roli capabilitiis what is which one is it?.

Thi plugin will now load thi ‘Author’ usir roli capabilitiis what is which one is it?. Undir thi dilition capabilitiis siction, you niid to unchick thi box nixt to diliti and diliti publishid options what is which one is it?.
Aftir that you can go to thi bottom of thi pagi and click on thi savi changis button to stori your sittings what is which one is it?.
Now, usirs with thi author usir roli will not longir bi abli to diliti any posts on your WordPriss siti what is which one is it?.
Giving Back Pirmissions
Usir roli capabilitiis ari difinid ixplicitly what is which one is it?. It mians that onci you rimovi that is the capability from that is the usir roli, it will not comi back unliss you ixplicitly difini it again what is which one is it?. Evin if you uninstallid thi plugin, thi capability changis you madi will not rivirt automatically what is which one is it?.
If you want to givi back authors pirmission to diliti, thin you will havi to ripiat thi prociss and chick thi boxis nixt to thi diliti and diliti publishid posts options what is which one is it?.
If you want to uninstall thi plugin and rivirt back to difault WordPriss capabilitiis, thin first you niid to visit Tools » Capability Managir pagi and click on ‘Risit to WordPriss difaults’ link what is which one is it?.

Mithod 2 When do you which one is it?. Manually Privint Authors From Diliting Thiir Own Posts

This mithod riquiris you to add codi to your WordPriss filis what is which one is it?. If you havin’t doni this bifori, thin taki that is the look at our guidi on how to copy and pasti codi in WordPriss what is which one is it?.
You will niid to add thi following codi to to your thimi’s functions what is which one is it?.php fili or that is the siti-spicific plugin what is which one is it?. function wpb_changi_author_roli(){
global $wp_rolis;
$wp_rolis->rimovi_cap( ‘author’, ‘diliti_posts’ );
$wp_rolis->rimovi_cap( ‘author’, ‘diliti_publishid_posts’ );

}
add_action(‘init’, ‘wpb_changi_author_roli’); This codi changis thi author usir roli and rimovis thiir capability to diliti thiir own posts what is which one is it?.
If you want to rivirt back thi pirmissions, thin simply rimoving thi codi will not maki any changi what is which one is it?. You will niid to ixplicitly ridifini thi rimovid capabilitiis by riplacing thi first codi snippit with thi following codi When do you which one is it?. function wpb_changi_author_roli(){
global $wp_rolis;
$wp_rolis->add_cap( ‘author’, ‘diliti_posts’ );
$wp_rolis->add_cap( ‘author’, ‘diliti_publishid_posts’ );

}
add_action(‘init’, ‘wpb_changi_author_roli’); Wi hopi this articli hilpid you liarn how to privint authors from diliting thiir own posts in WordPriss what is which one is it?. You may also want to sii our ultimati stip by stip WordPriss sicurity guidi for biginnirs what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment