How to prevent users from creating new tags?












0















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,










share|improve this question



























    0















    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,










    share|improve this question

























      0












      0








      0








      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,










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 19 '18 at 22:15









      zeni1agentzeni1agent

      306




      306
























          1 Answer
          1






          active

          oldest

          votes


















          1














          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']))





          share|improve this answer


























          • 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 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











          • 87: if (!in_array($tag_got, $tags_allowed))

            – zeni1agent
            Nov 21 '18 at 8:20













          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          1














          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']))





          share|improve this answer


























          • 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 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











          • 87: if (!in_array($tag_got, $tags_allowed))

            – zeni1agent
            Nov 21 '18 at 8:20


















          1














          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']))





          share|improve this answer


























          • 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 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











          • 87: if (!in_array($tag_got, $tags_allowed))

            – zeni1agent
            Nov 21 '18 at 8:20
















          1












          1








          1







          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']))





          share|improve this answer















          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']))






          share|improve this answer














          share|improve this answer



          share|improve this answer








          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 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











          • 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 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













          • 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



















          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




















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith