[wp-hackers] changing the built in categories label on the add post screen
IC IC
icwordpress at gmail.com
Fri Nov 18 23:18:45 UTC 2011
When you unregister, what happens to the existing categories that have been
created?
Shall I just run this at the twentyten functions.php?
add_action( 'init', 'unregister_taxonomy');
function unregister_taxonomy(){
global $wp_taxonomies;
$taxonomy = 'category';
if ( taxonomy_exists( $taxonomy))
unset( $wp_taxonomies[$taxonomy]);
}
and after that, go find the post.php and change the label from categories
to topics? is that a safe thing to do ?
wouldn't this go away when we update the wordpress core though?
I want the label topics to stay permanently regardless of the updates..
On Fri, Nov 18, 2011 at 3:08 PM, Charles Frees-Melvin <
charles.freesmelvin at me.com> wrote:
> You can't it is hard coded into wp-includes/post.php
>
> The best option is to unregister categories and replace with a new tax.
>
> --
> Charles E. Frees-Melvin
>
> Sent from my Rogers iPhone 4S
>
> On 2011-11-18, at 18:59, IC IC <icwordpress at gmail.com> wrote:
>
> > Which table stores the "categories" label?
> >
> > I already changed the categories folder name from "category" to "topics"
> > but the add post screen still display "Categories" as the label?
> > I want to change that too to Topics.
> >
> > When you create a custom taxonomies, this issue is not a problem cause it
> > has the label argument.
> > but since the categories already come pre-created, I need to make that
> > change straight into the table!
> > where do I do that?
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list