likes_new_layout

likes_new_layout

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.13.1.3

apply_filters('likes_new_layout') is found 3 times:

  • /extensions/blocks/like/like.php line 74
    	 * @module likes
    	 *
    	 * @param bool $new_layout Enable the new Likes layout. False by default.
    	 */
    	$new_layout = apply_filters( 'likes_new_layout', true ) ? '&n=1' : '';
    
    	add_action( 'wp_footer', __NAMESPACE__ . '\render_iframe', 25 );
    
    	if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
    		$style_url  = content_url( 'mu-plugins/likes/jetpack-likes.css' );
    		$script_url = content_url( 'mu-plugins/likes/queuehandler.js' );
    
  • /modules/likes/jetpack-likes-master-iframe.php line 27
    	$_locale   = isset( $gp_locale->slug ) ? $gp_locale->slug : '';
    
    	$likes_locale = ( '' === $_locale || 'en' === $_locale ) ? '' : '&lang=' . strtolower( $_locale );
    	/** This filter is documented in projects/plugins/jetpack/modules/likes.php */
    	$new_layout       = apply_filters( 'likes_new_layout', true ) ? '&n=1' : '';
    	$new_layout_class = $new_layout ? 'wpl-new-layout' : '';
    
    	$src = sprintf(
    		'https://widgets.wp.com/likes/master.html?ver=%1$s#ver=%1$s%2$s%3$s',
    		$version,
    		$likes_locale,
    
  • /modules/likes.php line 445
    		 * @module likes
    		 *
    		 * @param bool $new_layout Enable the new Likes layout. False by default.
    		 */
    		$new_layout = apply_filters( 'likes_new_layout', true ) ? '&n=1' : '';
    
    		$src      = sprintf( 'https://widgets.wp.com/likes/?ver=%1$s#blog_id=%2$d&post_id=%3$d&origin=%4$s&obj_id=%2$d-%3$d-%5$s%6$s', rawurlencode( JETPACK__VERSION ), $blog_id, $post_id, $domain, $uniqid, $new_layout );
    		$name     = sprintf( 'like-post-frame-%1$d-%2$d-%3$s', $blog_id, $post_id, $uniqid );
    		$wrapper  = sprintf( 'like-post-wrapper-%1$d-%2$d-%3$s', $blog_id, $post_id, $uniqid );
    		$headline = sprintf(
    			/** This filter is already documented in modules/sharedaddy/sharing-service.php */