WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1109 | |
| 1110 | /** |
| 1111 | * Filter the default HTML for the Press This editor. |
| 1112 | * |
| 1113 | * @since 4.2.0 |
| 1114 | * |
| 1115 | * @param array $default_html Associative array with two keys: 'quote' where %1$s is replaced with the site description |
| 1116 | * or the selected content, and 'link' there %1$s is link href, %2$s is link text. |
| 1117 | */ |
| 1118 | $default_html = apply_filters( 'press_this_suggested_html', $default_html, $data ); |
| 1119 | |
| 1120 | if ( ! empty( $default_html['embed'] ) ) { |
| 1121 | $content .= $default_html['embed']; |
| 1122 | } |
| 1123 | |
| 1124 | // Wrap suggested content in the specified HTML. |
| 1125 | if ( ! empty( $default_html['quote'] ) && $text ) { |
| 1126 | $content .= sprintf( $default_html['quote'], $text ); |
| 1127 | } |