티스토리 뷰
워드프레스에서 add_filter( )와 apply_filter( ) 차이
Filter Hook인 'auth_cookie_expiration'에 대해 검색하다 보니 검색결과로 'apply_filters( 'auth_cookie_expiration', int $length, int $user_id, bool $remember )'를 나왔다. 잉? apply_filter ? add_filter와 apply_filter 차이가 무엇인지 궁금해졌다.
add_filter는 Filter Hook에 사용자 정의 함수를 거는(Hook)[연결하는] 것이고 apply_fitler는 Filter Hook에 이미 걸려 있는 함수를 호출하는 것이다.
참고 자료
- add_filter( string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1 )
- apply_filters( string $tag, mixed $value )
- apply_filters( 'auth_cookie_expiration', int $length, int $user_id, bool $remember )
'웹개발 > WordPress' 카테고리의 다른 글
| 워드프레스 폴더(디렉토리) 구조 (0) | 2017.04.01 |
|---|---|
| 워드프레스 테마 템플릿 계층구조 (0) | 2017.03.29 |
| 랜딩페이지 만들기 (0) | 2016.01.06 |
| 워드프레스에서 SMTP 설정하기 (1) | 2016.01.05 |
| 플러그인 메뉴가 보이지 않는다 (1) | 2016.01.04 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 아메리카노
- steemit
- 애드센스티스토리
- 100달러스타트업
- html
- 가상화폐
- 영어공부
- 자기계발서
- 워드프레스
- 편의점
- 구글애널리틱스
- 자네일은재미있나
- 할인정보
- 스팀잇
- 자기계발
- 주식투자
- 세무회계
- 블록체인
- 독서노트
- 책리뷰
- 유발하라리
- 맛평가
- 1인기업
- 북리뷰
- 피싱사이트
- 일상
- 사피엔스
- 서평
- 스타벅스
- 재테크
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 |
글 보관함