/im', $output, $matches ); // with pointer at end of array check if we got an ID match. if ( end( $matches[2] ) ) { // build a string to use as aria-labelledby. $labledby = 'aria-labelledby="' . end( $matches[2] ) . '"'; } $output .= "\n$indent'; if ( $container ) { $fallback_output = ''; } // if $args has 'echo' key and it's true echo, otherwise return. if ( array_key_exists( 'echo', $args ) && $args['echo'] ) { echo $fallback_output; // WPCS: XSS OK. } else { return $fallback_output; } } // End if(). } } } // End if().