• Hello Team,

    On the WordPress website, we have multiple authors or users. when authors publish a post in the tag section, if they enter anything, then submit an auto tag created.

    So how to disable tag creation in post editor (authors only)

    Please let me know

    Thank You

    • This topic was modified 2 years, 11 months ago by priyankac.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    One way to prevent tag creation is to hide the related back end UI elements with CSS. You can output inline <style> blocks from the “admin_print_styles” action. You can remove admin menu items by unsetting the appropriate parts of the global $submenu array.

    Hiding with CSS is not entirely secure. A knowledgeable user can easily unhide such elements. If you need complete security, this also needs to be enforced server side. For example you could hook ‘pre_insert_term’ and simply wp_die() if the current user is an author and the term is a tag. Crude but effective.

Viewing 1 replies (of 1 total)

The topic ‘disable tag creation in post edit page when author publishing posts’ is closed to new replies.