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