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