CPTUI post types `can_export` is always set to false.
-
Hi, I am building a plugin and I want to be able to show the CPTUI custom post types I created with CPTUI.
I execute theget_post_types
function, it returns all the plugins except the ones I created with CPTUI.
This is the code I used:$post_types = get_post_types( [ 'public' => true, 'can_export' => true, ] );
After some investigation, I found out that the CPT
can export
value is always set toFALSE
, though I have set it toTRUE
in the UI.What can I do about that?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘CPTUI post types `can_export` is always set to false.’ is closed to new replies.