Jetpack_Likes::likes_edit_column PHP Method

likes_edit_column() public method

Add "Likes" column data to the post edit table in wp-admin.
public likes_edit_column ( string $column_name, integer $post_id )
$column_name string
$post_id integer
    function likes_edit_column($column_name, $post_id)
    {
        if ('likes' == $column_name) {
            if (defined('IS_WPCOM') && IS_WPCOM) {
                $blog_id = get_current_blog_id();
            } else {
                $blog_id = Jetpack_Options::get_option('id');
            }
            $permalink = get_permalink(get_the_ID());
            ?>
			<a title="" data-post-id="<?php 
            echo (int) $post_id;
            ?>
" class="post-com-count post-like-count" id="post-like-count-<?php 
            echo (int) $post_id;
            ?>
" data-blog-id="<?php 
            echo (int) $blog_id;
            ?>
" href="<?php 
            echo esc_url($permalink);
            ?>
#like-<?php 
            echo (int) $post_id;
            ?>
">
				<span class="comment-count">0</span>
			</a>
			<?php 
        }
    }