Skip to content

Commit

Permalink
Merge pull request YOURLS#2345 from joshp23/bypass-yourls_html_addnew()
Browse files Browse the repository at this point in the history
add filter to bypass yourls_html_addnew()
  • Loading branch information
ozh authored Jan 7, 2018
2 parents 19f618d + 5dc44dd commit dd78d7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/functions-html.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ function yourls_html_footer($can_query = true) {
* @param string $keyword Keyword to prefill the input with
*/
function yourls_html_addnew( $url = '', $keyword = '' ) {
$pre = yourls_apply_filter( 'shunt_html_addnew', false, $url, $keyword );
if ( false !== $pre ) {
return $pre;
}
?>
<main role="main">
<div id="new_url">
Expand Down

0 comments on commit dd78d7f

Please sign in to comment.