jetpack_top_posts_widget_permalink, $post[permalink], $post

jetpack_top_posts_widget_permalink, $post[permalink], $post

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_top_posts_widget_permalink, $post[permalink], $post') is found 3 times:

  • /modules/widgets/top-posts.php line 494
    						 *
    						 * @param string $post['permalink'] Post permalink.
    						 * @param array  $post              Post array.
    						 */
    						$filtered_permalink = apply_filters( 'jetpack_top_posts_widget_permalink', $post['permalink'], $post );
    
    						if ( $post['image'] ) {
    							printf(
    								'<a href="%1$s" title="%2$s" class="bump-view" data-bump-view="tp"%3$s><img loading="lazy" width="%4$d" height="%5$d" src="%6$s" srcset="%7$s" alt="%2$s" data-pin-nopin="true"/></a>',
    								esc_url( $filtered_permalink ),
    								esc_attr( wp_kses( $post['title'], array() ) ),
    
  • /modules/widgets/top-posts.php line 532
    						/** This action is documented in modules/widgets/top-posts.php */
    						do_action( 'jetpack_widget_top_posts_before_post', $post['post_id'] );
    
    						/** This filter is documented in modules/widgets/top-posts.php */
    						$filtered_permalink = apply_filters( 'jetpack_top_posts_widget_permalink', $post['permalink'], $post );
    
    						if ( $post['image'] ) {
    							printf(
    								'<a href="%1$s" title="%2$s" class="bump-view" data-bump-view="tp"%3$s><img loading="lazy" width="%4$d" height="%5$d" src="%6$s" srcset="%7$s" alt="%2$s" data-pin-nopin="true" class="widgets-list-layout-blavatar" /></a>',
    								esc_url( $filtered_permalink ),
    								esc_attr( wp_kses( $post['title'], array() ) ),
    
  • /modules/widgets/top-posts.php line 576
    					/** This action is documented in modules/widgets/top-posts.php */
    					do_action( 'jetpack_widget_top_posts_before_post', $post['post_id'] );
    
    					/** This filter is documented in modules/widgets/top-posts.php */
    					$filtered_permalink = apply_filters( 'jetpack_top_posts_widget_permalink', $post['permalink'], $post );
    
    					printf(
    						'<a href="%1$s" class="bump-view" data-bump-view="tp"%2$s>%3$s</a>',
    						esc_url( $filtered_permalink ),
    						( get_queried_object_id() === $post['post_id'] ? ' aria-current="page"' : '' ),
    						esc_html( wp_kses( $post['title'], array() ) )