Custom Post Type Error

you’re missing the namespace in the add_action part. it should be:
add_action( 'init', __NAMESPACE__ . '\\technology_platform', 0 );

check here:

and some more info about namespaces here: https://roots.io/upping-php-requirements-in-your-wordpress-themes-and-plugins/

4 Likes