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 |
---|---|
1133 |
|
1134 | /** |
1135 | * Triggers a caching of all oEmbed results. |
1136 | * |
1137 | * @param int $post_ID Post ID to do the caching for. |
1138 | */ |
1139 | function cache_oembed( $post_ID ) { |
1140 | $post = get_post( $post_ID ); |
1141 |
|
1142 | if ( empty($post->ID) || !in_array( $post->post_type, apply_filters( 'embed_cache_oembed_types', array( 'post', 'page' ) ) ) ) |
1143 | return; |
1144 |
|
1145 | // Trigger a caching |
1146 | if ( !empty($post->post_content) ) { |
1147 | $this->post_ID = $post->ID; |
1148 | $this->usecache = false; |
1149 |
|
1150 | $content = $this->run_shortcode( $post->post_content ); |
1151 | if ( get_option('embed_autourls') ) |