Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5527

odie2 on "[Plugin: Activity Log] Log custom event"

$
0
0

Awesome! Love this plugin ^^

add_filter( 'aal_table_list_column_description', 'replacements_activity', 10, 2 );
function replacements_activity( $return, $item ) {
	if ( ! empty( $item->object_id ) && 1678 == $item->object_id ) {
		//Don't overwrite default page edit
		if ( strpos( $item->object_name, ':' ) !== false ) {
			$type = substr( $item->object_name, strpos( $item->object_name, ':' ) + 2 );
			$type = ( $type == 'Dane' ? 'data' : $type );
			return sprintf( '<a href="%s" target="_blank">%s</a>', get_permalink( $item->object_id ) . $type .'/', $item->object_name );
		}
	}
	return $return;
}

Zastępstwa: Dane = http://example.com/zastepstwa/data/

Zastępstwa: 2015-09-23 = http://example.com/zastepstwa/2015-09-23/


Viewing all articles
Browse latest Browse all 5527

Trending Articles