Add Change Author in Type Post Quick Edit

3

I created a type post to customize the admin of a client's wordpress, everything works perfectly, however the option to change the author of the post in "quick editing" does not appear, I know that by default it will not show for fields custom, I have the code to include in the functions.php to show, but I did this and I can not adjust this function, does anyone know where I am going wrong or can it help me with another solution. It is not the Screen Option setting. Here is the Code I have below:

          // ADICIONAR EDITAR AUTOR

         function allowAuthorEditing()
        {
        add_post_type_support( 'mytype', 'author' );
         }
          add_action('init','allowAuthorEditing');
    
asked by anonymous 11.10.2016 / 07:32

1 answer

2

I found the Solution Galera, I will pass the code to analyze how the correct function was.

                 // ADICIONAR EDITAR AUTOR

               add_action('init', 'wptips_custom_init');
                   function wptips_custom_init() {
                   add_post_type_support( 'places', array(  'author' ) );
                   }

If you need to include other functions, you only need to include in the array what you need to match the type post you created.

    
11.10.2016 / 21:07