pbs_shortcodes_to_hide_in_picker

작성자

카테고리:

,

pbs_shortcodes_to_hide_in_picker

PBS의 숏코드 선택기에서 숨길 숏코드 태그 목록입니다. 이미 사용 중단되었거나 사용자에게 숨기려는 숏코드가 선택기 팝업에 나타나는 경우에 사용하세요.

매개변수

$shortcodes

Array. 숏코드 태그 배열입니다.

예제

선택기에서 숏코드를 숨깁니다.

add_filter( 'pbs_shortcodes_to_hide_in_picker, 'hide_embed_shortcode' );

function hide_embed_shortcode( $shortcodes ) {
	$shortcodes[] = 'embed';
	return $shortcodes;
}