훅 유형: Action (동작)
설명 : 단일 게시물 유형 앞에 일부 콘텐츠 추가
현재 후크 된 기능 :
해당 사항 없음
사용법:
add_action( 'um_theme_single_post_before', 'my_theme_post' );
사용 예:
<?php
add_action( 'um_theme_single_post_before', 'my_theme_post' );
function my_theme_post() {
// 여기에 코드 내용 넣기;
}
?>
Source : single.php 파일 23행에 있습니다.
원문: https://docs.ultimatemember.com/article/1418-umthemesinglepostbefore