Support » Plugin: Genesis Author Pro » Filter for buttons

  • It would be nice if you could add a filter for the button links, so we can add attributes, custom classes, ID etc…, useful for implementing click tracking or adding date attributes for passing data to javascript.

    I didn’t test it but something like the following should work.

    $values[] = apply_filter('genesis_author_pro_button_link', sprintf( '<a href="%s" class="button button-book" target="_blank">%s</a>', $uri, $text ), $post_id, $uri, $text);

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Filter for buttons’ is closed to new replies.