I found the solution to this problem here.
This code doesn’t allow user to create new tags from the back or front end but only use the existing custom ones that admin have set in the post_tag taxonomy.
Related Posts:
- How to make custom column Admin>Users sortable?
- Filter out other users comments. Visualize only own comments and editor role users’ comments
- Is possible add icon in title posts only in specific tag?
- How to edit the Tags within the image file URLs?
- Filter to wp_list_authors
- remove empty paragraphs from the_content?
- Adding fields to the “Add New User” screen in the dashboard
- Issues with title-tag and document_title_parts
- How to check if a user exists by a given id
- Remove Actions/Filters added via Anonymous Functions
- Set JPEG compression for specific custom image sizes
- Use author author display name in permalink structure for pages and posts
- Define custom Page Template without its own .php file
- Add class to menu items of one specific menu (nav_menu_css_class)
- How to influence the information displayed on widget inside wp-admin
- Get a list of all available fields in the User Profile
- Logout redirect to current page – function
- How to paginate the get_users function?
- Removing default image size list in Media Box
- How to restrict actions and filters “properly” by conditions
- Filter the query ONLY for the search results page
- How to display random users with avatars
- How to manually activate user in dashboard only by admin
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- Using add_filter() in Widgets
- Add new user : make the fields First Name and Last name required
- Customize WordPress Media Manager – Media Window
- How to reduce original image quality on upload?
- Is it possible to use a forgot password url filter?
- syntax for remove_filter in parent theme with class
- Add body class of category parent
- wp_delete_user with username
- Wrap gutenberg block ‘div’ in other elements/extra HTML
- Convert hyphen to underscore in permalinks
- Override parent theme function that is not hooked or in the functions.php file
- Remove Page Title from Static Frontpage
- Change labels on ‘Nickname’ and ‘Biographical Info’ in user-edit.php
- Programmatically Add Font-Awesome Icons to Category Widget
- Order get_users() by last login date. Is it possible?
- Remove bulk actions based on user role or capabilities
- Removing user contact methods works from functions.php but not from a plugin
- Default or Preset Content for Custom Post Types
- How to get any tag ID
- Remove tag on my RSS Feed
- Override a class function to include a custom template
- How to override filter in child theme?
- How can I tell when a user is logged in?
- Removing title from page
- Hide some items from Screen options in dashboard for products
- get_the_excerpt() not returning anything when post has no excerpt
- How to change a certain text or term of WordPress into a custom into the whole site?
- Automatically add author’s name to post_tag
- how to get and display logged in user’s recently read posts
- Displaying a random user with a shortcode
- How to update BuddyPress xprofile fields programmatically? [closed]
- Adding body class when post contains a specific shortcode
- How to detect first visit of a user?
- Replace Archive Widget Link Text
- Exclude Empty Child Categories in Menu
- Can I pass two roles to the function get_users?
- How to make unique add_filter to the_content of specific page template files – so each template gets its own addition
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- Best way to programatically add “rel” attributes to page and post images
- add_filter priority problem
- Limit filter upgrader_post_install to a single plugin
- Adding a class to tag list in a function
- Create dropdown of users in admin dashboard
- How to update feed only 2-3 times a week (for Feedburner email)?
- Manipulate Output of wp_list_something: select menu instead of li’s
- Clean-up script tags
- password protected post policy
- How to use IF Statement in WordPress?
- Gravity Forms field entries into wp_query loop [closed]
- Post Pagination Showing Same Posts Every Page
- Show excerpt for only first post in query
- Remove function or filter
- modify a function filter
- Super simple shortcode not working
- How would go about if I just want a temporary function?
- Remove the deleted users avatar from list
- Generating rel=prev and rel=next only on wordpress categories
- How to make applyFilters function return false via functions.php
- How to filter out shortcode when displaying the_excerpt() in the loop?
- Accepted arguments value in hook functions
- Get current page_id before loop, in functions.php
- Get Current User info using wp_localize_script, in functions.php
- Which action hook to use for function?
- Create single.php for specific tag by tag id or name
- Adding multiple taxonomy filters to functions.php
- str_replace function in theme
- list tags with count in author profile page
- How to add custom fields to my custom registration form
- Can’t check if a post has thumbnail adding filter to get_post_metadata()
- Product Tags in Add New product as checkbox list [closed]
- Adding HTML to the end of every post with the Block Editor
- Last updated date function
- create shortcode to list users with specific meta key value
- Modify a function without editing template
- Retrieve tags data in post body
- Echo tags used to describe the theme