Move action links to main class

This commit is contained in:
Brian Miyaji
2014-03-25 19:16:10 +11:00
parent e7ed4e3738
commit fcb6435237
3 changed files with 20 additions and 16 deletions

View File

@@ -1,13 +0,0 @@
<?php
function sportspress_plugin_action_links( $links ) {
$settings_link = '<a href="options-general.php?page=sportspress">' . __( 'Settings', 'sportspress' ) . '</a>';
// $docs_link = '<a href="http://docs.themeboy.com/sportspress" target="_blank">' . __( 'Docs', 'sportspress' ) . '</a>';
// $themes_link = '<a href="http://themeboy.com/themes?plugin=sportspress" target="_blank">' . __( 'Themes', 'sportspress' ) . '</a>';
array_push( $links, $settings_link );
return $links;
}
$plugin = plugin_basename( SP_PLUGIN_FILE );
add_filter( "plugin_action_links_$plugin", 'sportspress_plugin_action_links' );