How to restrict tags to existing tags only
To only allow existing tags to be selected as part of listing submissions, use this code snippet:
function gd_snippet_210726_disable_new_tags( $html, $cf ) { $html = str_replace( 'data-tags="true"', '', $html ); $html = str_replace( 'id="post_tags"', 'id="post_tags" data-tags="false"', $html ); return $html; } add_filter( 'geodir_custom_field_input_tags', 'gd_snippet_210726_disable_new_tags', 999, 2 );<br>
We recommend using a Code Snippets plugin.