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

Commit b03cd6f

Browse files
committed
Introduce filter for Mlp_Helpers::show_linked_elements() output. #228
1 parent 6ea9abd commit b03cd6f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/inc/common/Mlp_Helpers.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,17 @@ public static function show_linked_elements( $args ) {
467467

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

470+
/**
471+
* Filters the output of the linked elements.
472+
*
473+
* @since 2.5.0
474+
*
475+
* @param string $output The generated HTML
476+
* @param array[] $items The language items
477+
* @param array $params The passed arguments (including missing defaults).
478+
*/
479+
$output = (string) apply_filters( 'mlp_linked_elements_html', $output, $items, $params );
480+
470481
return $output;
471482
}
472483

0 commit comments

Comments
 (0)