Reputation
8,429
Next privilege 10,000 Rep.
Access moderator tools
Badges
13 33
Newest
 Proofreader
Impact
~358k people reached

Jul
7
comment How to not allow users to create new tags, but allow to them to use existing ones
Time to start debugging then. In wp-config.php set the following constants, define('WP_DEBUG', true);, define('WP_DEBUG_LOG', true);, and define('WP_DEBUG_DISPLAY', false); then in the function snippet above, log a call to error_log($taxonomy); and another call to error_log(implode(', ', $user->roles)); then add a tag then update the post, this will then create a debug.log file in the wp-content directory. You need to work out whether or not this function is being called and whether or not it is entering the conditional statement correctly because this callback works for me.
Jul
7
comment How to not allow users to create new tags, but allow to them to use existing ones
What is the user role you are trying to prevent? Also are you trying to prevent tags for the correct taxonomy, in this case post_tag and not some other taxonomy like categories or some custom taxonomy?
Jul
5
revised Echo one category as title when post has multiple categories?
remove all cap words, not necessary.
Jul
5
answered How to not allow users to create new tags, but allow to them to use existing ones
Jul
5
awarded  Cleanup
Jul
4
reviewed Approve How should I use wpdb class to submit a form in admin dashboard?
Jul
4
reviewed Approve Problem in adding new site on WP multisite
Jun
29
reviewed Approve Where is the stylesheet code?
Jun
26
reviewed Approve Add custom column to Users admin panel with Types user custom fields?
Jun
23
revised Update post meta using save_post hook in multisite
formatting
Jun
22
reviewed Approve How to display pagination links for WP_User_Query?
Jun
20
reviewed Approve Running a song lyrics site on WordPress
Jun
16
reviewed Approve How can I make WordPress serve homepage to different URL?
Jun
16
reviewed Approve Offline Wordpress Application
Jun
10
revised Subdomain is not working
added 2 characters in body
Jun
9
comment generate unique slug while inserting post
If you do not specify a post_name parameter, WordPress will create the slug for you automatically based on the post_title. If a post already exists with the same post_name, WordPress will append a number to the end of the slug, such as {slug}-2 and {slug}-3 etc.
Jun
9
reviewed Approve Information on plugin adding text when a post, page, or other such is displayed
Jun
9
revised Replace Taxomony Description Field with Visual/WYSIWYG Editor
typo in function declaration
Jun
8
comment how to redirect to another post without getting headers already sent error?
@Digamber No problem...
Jun
6
reviewed Approve Wordpress site stopped working after simply opening header.php in the wp-admin editor