public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/functions.php
/**
 * Given a template, return a list of all of the tags being used in the body.
 *
 * @since 1.0.0
 *
 * @param string $templateBody The template body to check for tags.
 *
 * @return array A list if template tags being used in the template.
 */
Given a template, return a list of all of the tags being used in the body.

@param string $templateBody The template body to check for tags.

@return array A list if template tags being used in the template.
Given a template return a list of all of the tags being used in the body . @param string $templateBody The template body to check for tags . @return array A list if template tags being used in the template .
function WPCW_email_getTagList( $templateBody ) {
	preg_match_all( "%{[A-Za-z_]+}%", $templateBody, $matches );
	if ( ! empty( $matches ) ) {
		array_walk( $matches[0], 'WPCW_email_getTagList_upper' );
		return $matches[0];
	}
	return array();
}
function WPCW_email_getTagList ( $ templateBody ) { preg_match_all ( " %{[A-Za-z_]+}% " , $ templateBody , $ matches ) ; if ( ! empty ( $ matches ) ) { array_walk ( $ matches [ 0 ] , 'WPCW_email_getTagList_upper' ) ; return $ matches [ 0 ] ; } return array ( ) ; }
Given a template, return a list of all of the tags being used in the body.
Given a template return a list of all of the tags being used in the body .
// This returns Array ( [0] => Array() ) by default. // Ensure all items are uppercase.