I'm trying to get all post types (custom & built_in) but it's only gives me only built_in ones in admin. I can get all of them in root (5 with builtins included) but in admin, i can only get 3.
I throught need a trigger an action or something but i couldn't find it.
$post_types = get_post_types( array( 'public' => true ), 'name' ); var_dump($post_types);
More info: I'll use it in reduxframework's config page (in "setSection" function).
PS: I don't want to get post_types with sql query, because i need empty post_types too.
Edit: it is not about just admin.
For reduxframework developers; you can't use any function which uses the
init action flag. For reference: https://github.com/ReduxFramework/redux-framework/issues/1181