Support » Plugins » Show Link IDs?

  • Resolved charismabiz


    I want to show link IDs on the links (blogroll) page.

    Is there an existing plugin that does this?

    If not, how would I make a plugin that shows the link ID in a column on the “Blogroll Management” page?
    ie: what’re the action hooks used?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Update:
    It may be a filter hook (manage_link_columns) instead of an action hook. Investigating now.

    Any help/advice will be appreciated tho 🙂

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    This will add the column, I think:

    function add_link_id_column($link_columns)
    	$id_column = array(
    	'id' => '<th>'._('ID').'</th>'
    	$link_columns=array_merge($id_column, $link_columns);
    	return $link_columns;

    And I think this will fill it in:

    function add_link_id_column_data($column_name, $id)
    	if ($column_name == 'id')
    		echo $id;

    I haven’t tested any of this, BTW. It might have typos/minor bugs.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show Link IDs?’ is closed to new replies.