Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Introduce filter for Mlp_Helpers::show_linked_elements() output. #228
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrommen committed Dec 23, 2016
1 parent 6ea9abd commit b03cd6f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/inc/common/Mlp_Helpers.php
Expand Up @@ -467,6 +467,17 @@ public static function show_linked_elements( $args ) {

$output .= '</ul></div>';

/**
* Filters the output of the linked elements.
*
* @since 2.5.0
*
* @param string $output The generated HTML
* @param array[] $items The language items
* @param array $params The passed arguments (including missing defaults).
*/
$output = (string) apply_filters( 'mlp_linked_elements_html', $output, $items, $params );

return $output;
}

Expand Down

0 comments on commit b03cd6f

Please sign in to comment.