Skip to content

Commit

Permalink
added filter to allow plugins to add own elements to be hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
Netzberufler committed Aug 11, 2017
1 parent 92984a2 commit 463c337
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/extras.php
Expand Up @@ -99,6 +99,9 @@ function tortuga_hide_elements() {
$elements[] = '.type-post .entry-footer .post-navigation';
}

// Allow plugins to add own elements.
$elements = apply_filters( 'tortuga_hide_elements', $elements );

// Return early if no elements are hidden.
if ( empty( $elements ) ) {
return;
Expand Down

0 comments on commit 463c337

Please sign in to comment.