Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign registering post types and taxonomies to the 'init' hook #331

Closed
gicolek opened this issue Dec 14, 2017 · 0 comments
Closed

Assign registering post types and taxonomies to the 'init' hook #331

gicolek opened this issue Dec 14, 2017 · 0 comments
Assignees

Comments

@gicolek
Copy link

gicolek commented Dec 14, 2017

https://github.com/xfiveco/generator-chisel/blob/master/generators/wp/templates/chisel-starter-theme/Chisel/Extensions/DataType.php

For instance: https://gist.github.com/gicolek/f476419226944b19c43da029c07c7c32

This doesn't mean it won't work, but WordPress documentation is pretty strict here: (for instance this gives one an ability to unhook such an action).

https://codex.wordpress.org/Function_Reference/register_post_type#Example

@luboskmetko luboskmetko changed the title Registering post types and taxonomies should be assigned to the 'init' hook Assign registering post types and taxonomies to the 'init' hook Dec 20, 2017
@luboskmetko luboskmetko self-assigned this Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants