Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * A donation link with a dashicon.
- *
- * Ever wanted a nice clickable link with an icon for your plugin?
- * Below a few code lines which help you out!
- *
- * Works with WordPress @version 5.0.3 and below
- */
- add_filter( 'plugin_row_meta', 'add_meta_links', 10, 2 );
- function add_meta_links( $plugin_meta, $plugin_file )
- {
- if( $plugin_file == plugin_basename(__FILE__) )
- {
- /** adjust the link to your preference */
- $plugin_meta[] = '<a class="dashicons-before dashicons-awards" href="http://your.paypal.link.com" target="_blank">' . 'Donate Us' . '</a>';
- }
- return $plugin_meta;
- } // end function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement