DIR Return Create A Forum - Home
---------------------------------------------------------
TESTPREPFORUM
HTML https://testprepforum.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: NEWS
*****************************************************
#Post#: 34--------------------------------------------------
Finally toggle the switch at the top
By: Khatija Khatun Date: August 30, 2023, 12:05 am
---------------------------------------------------------
Next choose the PHP Snippet as the code type and then copy and
paste the following code into the Code Preview box
function wpbchangeauthorrole global wproles wprolesaddcap author
deleteposts wprolesaddcap author deletepublishedposts
addactioninit wpbchangeauthorrole Hosted with by WPCode click
Use in WordPress Snippet for allowing authors to delete posts
After that scroll down to the Insertion section and choose the
Auto Insert mode. The code will automatically add the deletion
capabilities for authors upon activation.
Choose auto insert mode right corner of the screen to Active
and click the Save Snippet button. Your authors will now be able
to delete their own posts in WordPress Buy Email Database
HTML https://dbtodata.com/email-data
like before. Save snippet for
allowing post deletion 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 stepbystep WordPress
security guide for beginners and our expert picks for the best
WordPress themes for authors. If you liked this article then
please subscribe to our YouTube Channel for WordPress video
tutorials.
[img]
HTML https://scontent.fdac5-2.fna.fbcdn.net/v/t39.30808-6/372902536_620122670243961_7597270003958491077_n.jpg?_nc_cat=102&ccb=1-7&_nc_sid=730e14&_nc_ohc=nEEzq8o10xYAX8y7lpS&_nc_ht=scontent.fdac5-2.fna&oh=00_AfCMaMx-OAMrTlOVO_3LvQj0di_BnytVCIYpoRfVEGnYXg&oe=64F38799[/img]
HTML https://dbtodata.com/email-data
You can also find us on Twitter and Facebook. SHARES Share
Tweet Share Popular on WPBeginner Right Now Revealed Why
Building an Email List is so Important Today Reasons Revealed
Why Building an Email List is so Important Today Reasons How to
Fix the Error Establishing a Database Connection in WordPress
How to Fix the Error Establishing a Database Connection in
WordPress Google Analytics in WordPress How to Install Google
Analytics in WordPress for Beginners How to Properly Move Your
Blog from WordPress.com to WordPress.
*****************************************************