WordPress: Create Plugin Action Links

There is 2 option to add additional links information to our WordPress plugins. With Plugin Row Meta which I already posted before. Plugin Row Meta add additional custom links ind the description plugins.

Screen Shot 2014-11-26 at 12.37.58 PM

But right now we will add information in the left, plugin tab. By default, plugin action links only give you Activate or Deactivate and Edit links.

Here the default plugin action links.

Screen Shot 2014-11-26 at 10.05.09 AM

Copy the code below to your main file (php) of the plugins.

add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'AF_action_links' );

function AF_action_links( $links ) {
   $links[] = '<a href="'. get_admin_url(null, 'admin.php?page=arabic-font/inc/init.php') .'">Settings</a>';
   $links[] = '<a href="https://profiles.wordpress.org/darto#content-plugins" target="_blank">More plugins by Darto KLoning</a>';
   return $links;

And the result will be like this.

Screen Shot 2014-11-26 at 12.32.12 PM

Artikel terkait:   WordPress: Custom Database Table

Isi Komentar

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

one × eight =

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top