درود خدمت دوستان گرامی
بنده نیاز دارم که بتوانم یک ساختار سفارشی به ساختار های پیشفرض وردپرس اضافه کنم طبق مستند های وردپرس (https://codex.wordpress.org/Post_Formats) زمانی که کد
// register custom post type 'my_custom_post_type' with 'supports' parameter
add_action( 'init', 'create_my_post_type' );
function create_my_post_type() {
register_post_type( 'my_custom_post_type',
array(
'labels' => array( 'name' => __( 'Products' ) ),
'public' => true,
'supports' => array('title', 'editor', 'post-formats')
)
);
}
وارد می کنم تغییری به