Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics

Replace Permalink with an Icon

Is it possible to show permalink in column as an icon (view icon, the one with the eye) instead of the super long link.

6 years, 6 months ago
Stefan van den Dungen Gronovius

Hi Maksim,

This is not possible by default, but it is possible by changing the value with our ac/column/value filter.
You can use the following snippet in your code to make the permalink a link with an eye icon as label.

 * @param $value  string
 * @param $id     int
 * @param $column AC_Column
function ac_column_permalink_icon( $value, $id, $column ) {
	if ( $column instanceof AC_Column_Post_Permalink ) {
		$value = ac_helper()->html->link( strip_tags( $value ), '<span class="dashicons dashicons-visibility"></span>' );

	return $value;

add_filter( 'ac/column/value', 'ac_column_permalink_icon', 10, 3 );

You can find more information about the used filter here:

6 years, 6 months ago

You must be logged in to reply to this topic.