wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



strip_shortcode_tag › WordPress Function

Da3.3.0
Deprecaton/a
strip_shortcode_tag ( $m )
Parametri:
  • (array) $m RegEx matches against post content.
    Richiesto:
Ritorna:
  • (string|false) The content stripped of the tag, otherwise false.
Definito a:
Codex:

Strips a shortcode tag based on RegEx matches against post content.



Sorgenti

function strip_shortcode_tag( $m ) {
	// Allow [[foo]] syntax for escaping a tag.
	if ( '[' === $m[1] && ']' === $m[6] ) {
		return substr( $m[0], 1, -1 );
	}

	return $m[1] . $m[6];
}