You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: