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 |
---|---|
706 | } |
707 |
|
708 | /** |
709 | * Filters whether to enable in-source media discovery in Press This. |
710 | * |
711 | * @since 4.2.0 |
712 | * |
713 | * @param bool $enable Whether to enable media discovery. |
714 | */ |
715 | if ( apply_filters( 'enable_press_this_media_discovery', true ) ) { |
716 | /* |
717 | * If no title, _images, _embed, and _meta was passed via $_POST, fetch data from source as fallback, |
718 | * making PT fully backward compatible with the older bookmarklet. |
719 | */ |
720 | if ( empty( $_POST ) && ! empty( $data['u'] ) ) { |
721 | if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'scan-site' ) ) { |
722 | $data = $this->source_data_fetch_fallback( $data['u'], $data ); |
723 | } else { |
724 | $data['errors'] = 'missing nonce'; |