Skip to content

Commit

Permalink
Add filter for metabox HTML output, similar to core's admin_post_thum…
Browse files Browse the repository at this point in the history
…bnail_html filter.
  • Loading branch information
Chris Scott committed Sep 4, 2014
1 parent dbbe8a6 commit 501f32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multi-post-thumbnails.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ private function post_thumbnail_html($thumbnail_id = null) {
$content .= sprintf('<script>%s</script>', $modal_js);
}

return $content;
return apply_filters( 'mpt_admin_post_thumbnail_html', $content, $post_ID, $thumbnail_id, $this->post_type, $this->id );
}

/**
Expand Down

0 comments on commit 501f32b

Please sign in to comment.