add_post_type_support 를 통해서 특정 포스트 타입의 support 를 추가할수 있습니다.
remove_post_type_support 를 통해서 특정 포스트 타입의 support 를 제거할수 있습니다.
사용할수 있는 Support 는 아래와 같습니다.
- ‘title’ – 제목
- ‘editor’ – 컨텐츠 에디터
- ‘author’ – 글쓴이
- ‘thumbnail’ – 특성이미지
- ‘excerpt’ – 요약글
- ‘trackbacks’ – 트랙백 보내기
- ‘custom-fields’ – 사용자 정의 필드
- ‘comments’ – 댓글
- ‘revisions’ – 리비전
- ‘page-attributes’ – 글 속성
- ‘post-formats’ – 글 형식
add_action( 'init', function(){ //test_type 이라는 post type의 요약글을 추가한다. add_post_type_support( 'test_type', 'excerpt' ); //test_type 이라는 post type의 컨텐츠 에디터를 제거한다. remove_post_type_support( 'test_type', 'editor'); }, 999 );
0개의 댓글