pbs_shortcodes_to_hide_in_picker

Ti a kọ nipasẹ

ninu

,

pbs_shortcodes_to_hide_in_picker

Àkójọ àwọn àlẹ̀mọ́ kòòdù kúkúrú (shortcode) láti fi pamọ́ nínú olùyàn kòòdù kúkúrú ti PBS. Lo èyí tí o bá ní àwọn kòòdù kúkúrú tí ń hàn nínú ojú-fèrèsé kékeré olùyàn tí o ti fòpin sí tàbí tí o kàn fẹ́ fi pamọ́ fún àwọn olùlò.

Àwọn Pàrámítà

$shortcodes

Array. Àkójọ (array) ti àwọn àlẹ̀mọ́ kòòdù kúkúrú.

Àpẹẹrẹ

Fi kòòdù kúkúrú pamọ́ kúrò nínú olùyàn náà.

add_filter( 'pbs_shortcodes_to_hide_in_picker, 'hide_embed_shortcode' );

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