jetpack_top_posts_widget_layout, , $posts, $display

jetpack_top_posts_widget_layout, , $posts, $display

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_top_posts_widget_layout, , $posts, $display') is found 1 times:

  • /modules/widgets/top-posts.php line 415
    		 * @param string $layout layout of the Top Posts Widget (empty string).
    		 * @param array $posts IDs of the posts to be displayed.
    		 * @param array $display Display option from widget form.
    		 */
    		$layout = apply_filters( 'jetpack_top_posts_widget_layout', '', $posts, $display );
    		if ( ! empty( $layout ) ) {
    			echo $layout; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    		}
    
    		switch ( $display ) {
    			case 'list':