Is register_post_type function only called in admin?
I have several custom post types, each in a separate file like cpt-books.php, cpt-movies.php etc. Besides just register_post_type I have code to add metaboxes etc. for each post type.
Then in functions.php I’m requiring these files like so:
Can I do it this way? So these files are only loaded in the admin and not on the front end?
Is it going to work properly? Or
- The topic ‘Is register_post_type called only in admin?’ is closed to new replies.