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 |
---|---|
690 | } |
691 |
|
692 | /** |
693 | * Filter whether to enable in-source media discovery in Press This. |
694 | * |
695 | * @since 4.2.0 |
696 | * |
697 | * @param bool $enable Whether to enable media discovery. |
698 | */ |
699 | if ( apply_filters( 'enable_press_this_media_discovery', true ) ) { |
700 | /* |
701 | * If no title, _images, _embed, and _meta was passed via $_POST, fetch data from source as fallback, |
702 | * making PT fully backward compatible with the older bookmarklet. |
703 | */ |
704 | if ( empty( $_POST ) && ! empty( $data['u'] ) ) { |
705 | $data = $this->source_data_fetch_fallback( $data['u'], $data ); |
706 | } else { |
707 | foreach ( array( '_images', '_embeds' ) as $type ) { |
708 | if ( empty( $_POST[ $type ] ) ) { |