Created
August 19, 2013 12:56
-
-
Save bavington/6268817 to your computer and use it in GitHub Desktop.
Simple function that links up your settings page from the plugin overview page:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function atfi_settings_link($links, $file) { | |
$plugin_file = basename(__FILE__); | |
if (basename($file) == $plugin_file) { | |
$settings_link = '<a href="options-general.php?page=atfi">Settings</a>'; | |
array_unshift($links, $settings_link); | |
} | |
return $links; | |
} | |
add_filter('plugin_action_links', 'atfi_settings_link', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment