How to prevent users from creating new tags?
I created the code to update the tags in the current post.
$tags = get_the_tags();
if( current_user_can('author') || current_user_can('editor') || current_user_can('administrator') ){
if ($tags > 0){
foreach ($tags as $tag){
$list_tag .= "{$tag->name}, ";
}
$tag_edit = '
<form method="POST">
<textarea class="textarea_post_tag" name="post_get_tags" id="RRR">
'.$list_tag.'
</textarea>
<input type="submit" value="Upgrade">
</form>
';
echo $tag_edit ;
}}
if ($_POST['post_get_tags']){
wp_set_post_tags( $post->ID, $_POST['post_get_tags'] );
}
But I need that when editing tags
If the post does not contain the specified tags in the database,
then instead of the tag was displayed ""
Example
if the textarea was entered
tag-existing, tag-new, tag-existing,
then it would be displayed
tag-existing, tag-existing,
php wordpress
add a comment |
I created the code to update the tags in the current post.
$tags = get_the_tags();
if( current_user_can('author') || current_user_can('editor') || current_user_can('administrator') ){
if ($tags > 0){
foreach ($tags as $tag){
$list_tag .= "{$tag->name}, ";
}
$tag_edit = '
<form method="POST">
<textarea class="textarea_post_tag" name="post_get_tags" id="RRR">
'.$list_tag.'
</textarea>
<input type="submit" value="Upgrade">
</form>
';
echo $tag_edit ;
}}
if ($_POST['post_get_tags']){
wp_set_post_tags( $post->ID, $_POST['post_get_tags'] );
}
But I need that when editing tags
If the post does not contain the specified tags in the database,
then instead of the tag was displayed ""
Example
if the textarea was entered
tag-existing, tag-new, tag-existing,
then it would be displayed
tag-existing, tag-existing,
php wordpress
add a comment |
I created the code to update the tags in the current post.
$tags = get_the_tags();
if( current_user_can('author') || current_user_can('editor') || current_user_can('administrator') ){
if ($tags > 0){
foreach ($tags as $tag){
$list_tag .= "{$tag->name}, ";
}
$tag_edit = '
<form method="POST">
<textarea class="textarea_post_tag" name="post_get_tags" id="RRR">
'.$list_tag.'
</textarea>
<input type="submit" value="Upgrade">
</form>
';
echo $tag_edit ;
}}
if ($_POST['post_get_tags']){
wp_set_post_tags( $post->ID, $_POST['post_get_tags'] );
}
But I need that when editing tags
If the post does not contain the specified tags in the database,
then instead of the tag was displayed ""
Example
if the textarea was entered
tag-existing, tag-new, tag-existing,
then it would be displayed
tag-existing, tag-existing,
php wordpress
I created the code to update the tags in the current post.
$tags = get_the_tags();
if( current_user_can('author') || current_user_can('editor') || current_user_can('administrator') ){
if ($tags > 0){
foreach ($tags as $tag){
$list_tag .= "{$tag->name}, ";
}
$tag_edit = '
<form method="POST">
<textarea class="textarea_post_tag" name="post_get_tags" id="RRR">
'.$list_tag.'
</textarea>
<input type="submit" value="Upgrade">
</form>
';
echo $tag_edit ;
}}
if ($_POST['post_get_tags']){
wp_set_post_tags( $post->ID, $_POST['post_get_tags'] );
}
But I need that when editing tags
If the post does not contain the specified tags in the database,
then instead of the tag was displayed ""
Example
if the textarea was entered
tag-existing, tag-new, tag-existing,
then it would be displayed
tag-existing, tag-existing,
php wordpress
php wordpress
asked Nov 19 '18 at 22:15
zeni1agentzeni1agent
306
306
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
With something like that you should be able to do it (code explained in the comments):
<?php
if ($_POST['post_get_tags'])
{
// Split post_get_tags string into an array using the comma as delimiter.
$tags_got_exploded = explode(',', $_POST['post_get_tags']);
// Remove whitespaces from every value of the array (we want a clean tag name for each value of the array).
$tags_got_exploded = array_map('trim', $tags_got_exploded);
/*
* Get an array with all the tags allowed to be added.
* get_tags https://codex.wordpress.org/Function_Reference/get_tags
* Returns a multidimensional array where the column_key "name" contains the tag name
* Just return an array with tag names allowed
*/
$tags_allowed = array_column(get_tags(), 'name');
// Iterate over every tag got
foreach ($tags_got_exploded as $key => &$tag_got)
{
// If the tag got is not inside the array with all the tags allowed to be added.
if (!in_array($tag_got, $tags_allowed))
// Remove the tag.
unset($tags_got_exploded[$key]);
}
// Join tag got elements (cleaned and checked).
$tags_got = implode(', ', $tags_got_exploded);
wp_set_post_tags($post->ID, $tags_got);
}
p.s. You should check the set of $_POST
variables through the isset() function
if (isset($_POST['post_get_tags']))
I could not find such a hook as: get_the_tags_allowed But even if I remove allowed it gives me an error: Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87
– zeni1agent
Nov 20 '18 at 15:51
I also tried to create my own logic, but it works crookedly static2.keep4u.ru/2018/11/20/UKERRR19f906a2550e1027.jpg
– zeni1agent
Nov 20 '18 at 15:54
Check the code comments. I wrote you a possible algorithm to manage what you asked for. Since I don't know the structure of your script and database, instead ofget_the_tags_allowed()
you have to make a query or use a built-in function that return all the tags allowed to be added in an array.
– gomd
Nov 20 '18 at 19:23
that's exactly what I did instead ofget_the_tags_allowed()
wroteget_the_tags()
and now I have a mistake Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87
– zeni1agent
Nov 21 '18 at 7:51
87:if (!in_array($tag_got, $tags_allowed))
– zeni1agent
Nov 21 '18 at 8:20
|
show 3 more comments
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53383423%2fhow-to-prevent-users-from-creating-new-tags%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
With something like that you should be able to do it (code explained in the comments):
<?php
if ($_POST['post_get_tags'])
{
// Split post_get_tags string into an array using the comma as delimiter.
$tags_got_exploded = explode(',', $_POST['post_get_tags']);
// Remove whitespaces from every value of the array (we want a clean tag name for each value of the array).
$tags_got_exploded = array_map('trim', $tags_got_exploded);
/*
* Get an array with all the tags allowed to be added.
* get_tags https://codex.wordpress.org/Function_Reference/get_tags
* Returns a multidimensional array where the column_key "name" contains the tag name
* Just return an array with tag names allowed
*/
$tags_allowed = array_column(get_tags(), 'name');
// Iterate over every tag got
foreach ($tags_got_exploded as $key => &$tag_got)
{
// If the tag got is not inside the array with all the tags allowed to be added.
if (!in_array($tag_got, $tags_allowed))
// Remove the tag.
unset($tags_got_exploded[$key]);
}
// Join tag got elements (cleaned and checked).
$tags_got = implode(', ', $tags_got_exploded);
wp_set_post_tags($post->ID, $tags_got);
}
p.s. You should check the set of $_POST
variables through the isset() function
if (isset($_POST['post_get_tags']))
I could not find such a hook as: get_the_tags_allowed But even if I remove allowed it gives me an error: Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87
– zeni1agent
Nov 20 '18 at 15:51
I also tried to create my own logic, but it works crookedly static2.keep4u.ru/2018/11/20/UKERRR19f906a2550e1027.jpg
– zeni1agent
Nov 20 '18 at 15:54
Check the code comments. I wrote you a possible algorithm to manage what you asked for. Since I don't know the structure of your script and database, instead ofget_the_tags_allowed()
you have to make a query or use a built-in function that return all the tags allowed to be added in an array.
– gomd
Nov 20 '18 at 19:23
that's exactly what I did instead ofget_the_tags_allowed()
wroteget_the_tags()
and now I have a mistake Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87
– zeni1agent
Nov 21 '18 at 7:51
87:if (!in_array($tag_got, $tags_allowed))
– zeni1agent
Nov 21 '18 at 8:20
|
show 3 more comments
With something like that you should be able to do it (code explained in the comments):
<?php
if ($_POST['post_get_tags'])
{
// Split post_get_tags string into an array using the comma as delimiter.
$tags_got_exploded = explode(',', $_POST['post_get_tags']);
// Remove whitespaces from every value of the array (we want a clean tag name for each value of the array).
$tags_got_exploded = array_map('trim', $tags_got_exploded);
/*
* Get an array with all the tags allowed to be added.
* get_tags https://codex.wordpress.org/Function_Reference/get_tags
* Returns a multidimensional array where the column_key "name" contains the tag name
* Just return an array with tag names allowed
*/
$tags_allowed = array_column(get_tags(), 'name');
// Iterate over every tag got
foreach ($tags_got_exploded as $key => &$tag_got)
{
// If the tag got is not inside the array with all the tags allowed to be added.
if (!in_array($tag_got, $tags_allowed))
// Remove the tag.
unset($tags_got_exploded[$key]);
}
// Join tag got elements (cleaned and checked).
$tags_got = implode(', ', $tags_got_exploded);
wp_set_post_tags($post->ID, $tags_got);
}
p.s. You should check the set of $_POST
variables through the isset() function
if (isset($_POST['post_get_tags']))
I could not find such a hook as: get_the_tags_allowed But even if I remove allowed it gives me an error: Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87
– zeni1agent
Nov 20 '18 at 15:51
I also tried to create my own logic, but it works crookedly static2.keep4u.ru/2018/11/20/UKERRR19f906a2550e1027.jpg
– zeni1agent
Nov 20 '18 at 15:54
Check the code comments. I wrote you a possible algorithm to manage what you asked for. Since I don't know the structure of your script and database, instead ofget_the_tags_allowed()
you have to make a query or use a built-in function that return all the tags allowed to be added in an array.
– gomd
Nov 20 '18 at 19:23
that's exactly what I did instead ofget_the_tags_allowed()
wroteget_the_tags()
and now I have a mistake Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87
– zeni1agent
Nov 21 '18 at 7:51
87:if (!in_array($tag_got, $tags_allowed))
– zeni1agent
Nov 21 '18 at 8:20
|
show 3 more comments
With something like that you should be able to do it (code explained in the comments):
<?php
if ($_POST['post_get_tags'])
{
// Split post_get_tags string into an array using the comma as delimiter.
$tags_got_exploded = explode(',', $_POST['post_get_tags']);
// Remove whitespaces from every value of the array (we want a clean tag name for each value of the array).
$tags_got_exploded = array_map('trim', $tags_got_exploded);
/*
* Get an array with all the tags allowed to be added.
* get_tags https://codex.wordpress.org/Function_Reference/get_tags
* Returns a multidimensional array where the column_key "name" contains the tag name
* Just return an array with tag names allowed
*/
$tags_allowed = array_column(get_tags(), 'name');
// Iterate over every tag got
foreach ($tags_got_exploded as $key => &$tag_got)
{
// If the tag got is not inside the array with all the tags allowed to be added.
if (!in_array($tag_got, $tags_allowed))
// Remove the tag.
unset($tags_got_exploded[$key]);
}
// Join tag got elements (cleaned and checked).
$tags_got = implode(', ', $tags_got_exploded);
wp_set_post_tags($post->ID, $tags_got);
}
p.s. You should check the set of $_POST
variables through the isset() function
if (isset($_POST['post_get_tags']))
With something like that you should be able to do it (code explained in the comments):
<?php
if ($_POST['post_get_tags'])
{
// Split post_get_tags string into an array using the comma as delimiter.
$tags_got_exploded = explode(',', $_POST['post_get_tags']);
// Remove whitespaces from every value of the array (we want a clean tag name for each value of the array).
$tags_got_exploded = array_map('trim', $tags_got_exploded);
/*
* Get an array with all the tags allowed to be added.
* get_tags https://codex.wordpress.org/Function_Reference/get_tags
* Returns a multidimensional array where the column_key "name" contains the tag name
* Just return an array with tag names allowed
*/
$tags_allowed = array_column(get_tags(), 'name');
// Iterate over every tag got
foreach ($tags_got_exploded as $key => &$tag_got)
{
// If the tag got is not inside the array with all the tags allowed to be added.
if (!in_array($tag_got, $tags_allowed))
// Remove the tag.
unset($tags_got_exploded[$key]);
}
// Join tag got elements (cleaned and checked).
$tags_got = implode(', ', $tags_got_exploded);
wp_set_post_tags($post->ID, $tags_got);
}
p.s. You should check the set of $_POST
variables through the isset() function
if (isset($_POST['post_get_tags']))
edited Nov 21 '18 at 13:01
answered Nov 20 '18 at 1:36


gomdgomd
1487
1487
I could not find such a hook as: get_the_tags_allowed But even if I remove allowed it gives me an error: Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87
– zeni1agent
Nov 20 '18 at 15:51
I also tried to create my own logic, but it works crookedly static2.keep4u.ru/2018/11/20/UKERRR19f906a2550e1027.jpg
– zeni1agent
Nov 20 '18 at 15:54
Check the code comments. I wrote you a possible algorithm to manage what you asked for. Since I don't know the structure of your script and database, instead ofget_the_tags_allowed()
you have to make a query or use a built-in function that return all the tags allowed to be added in an array.
– gomd
Nov 20 '18 at 19:23
that's exactly what I did instead ofget_the_tags_allowed()
wroteget_the_tags()
and now I have a mistake Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87
– zeni1agent
Nov 21 '18 at 7:51
87:if (!in_array($tag_got, $tags_allowed))
– zeni1agent
Nov 21 '18 at 8:20
|
show 3 more comments
I could not find such a hook as: get_the_tags_allowed But even if I remove allowed it gives me an error: Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87
– zeni1agent
Nov 20 '18 at 15:51
I also tried to create my own logic, but it works crookedly static2.keep4u.ru/2018/11/20/UKERRR19f906a2550e1027.jpg
– zeni1agent
Nov 20 '18 at 15:54
Check the code comments. I wrote you a possible algorithm to manage what you asked for. Since I don't know the structure of your script and database, instead ofget_the_tags_allowed()
you have to make a query or use a built-in function that return all the tags allowed to be added in an array.
– gomd
Nov 20 '18 at 19:23
that's exactly what I did instead ofget_the_tags_allowed()
wroteget_the_tags()
and now I have a mistake Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87
– zeni1agent
Nov 21 '18 at 7:51
87:if (!in_array($tag_got, $tags_allowed))
– zeni1agent
Nov 21 '18 at 8:20
I could not find such a hook as: get_the_tags_allowed But even if I remove allowed it gives me an error: Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87
– zeni1agent
Nov 20 '18 at 15:51
I could not find such a hook as: get_the_tags_allowed But even if I remove allowed it gives me an error: Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87
– zeni1agent
Nov 20 '18 at 15:51
I also tried to create my own logic, but it works crookedly static2.keep4u.ru/2018/11/20/UKERRR19f906a2550e1027.jpg
– zeni1agent
Nov 20 '18 at 15:54
I also tried to create my own logic, but it works crookedly static2.keep4u.ru/2018/11/20/UKERRR19f906a2550e1027.jpg
– zeni1agent
Nov 20 '18 at 15:54
Check the code comments. I wrote you a possible algorithm to manage what you asked for. Since I don't know the structure of your script and database, instead of
get_the_tags_allowed()
you have to make a query or use a built-in function that return all the tags allowed to be added in an array.– gomd
Nov 20 '18 at 19:23
Check the code comments. I wrote you a possible algorithm to manage what you asked for. Since I don't know the structure of your script and database, instead of
get_the_tags_allowed()
you have to make a query or use a built-in function that return all the tags allowed to be added in an array.– gomd
Nov 20 '18 at 19:23
that's exactly what I did instead of
get_the_tags_allowed()
wrote get_the_tags()
and now I have a mistake Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87– zeni1agent
Nov 21 '18 at 7:51
that's exactly what I did instead of
get_the_tags_allowed()
wrote get_the_tags()
and now I have a mistake Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87 Warning: in_array() expects parameter 2 to be array, boolean given in C:xampphtdocsworwp-contentthemespogcontent_singl_post_ise.php on line 87– zeni1agent
Nov 21 '18 at 7:51
87:
if (!in_array($tag_got, $tags_allowed))
– zeni1agent
Nov 21 '18 at 8:20
87:
if (!in_array($tag_got, $tags_allowed))
– zeni1agent
Nov 21 '18 at 8:20
|
show 3 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53383423%2fhow-to-prevent-users-from-creating-new-tags%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown