add settings link to plugin page
This commit is contained in:
parent
3db5fb2626
commit
36bef694b6
1 changed files with 7 additions and 8 deletions
|
@ -92,16 +92,15 @@ function init() {
|
||||||
/**
|
/**
|
||||||
* Add plugin settings link
|
* Add plugin settings link
|
||||||
*/
|
*/
|
||||||
function plugin_settings_link( $links ) {
|
function plugin_settings_link( $actions ) {
|
||||||
$settings_link[] = \sprintf(
|
$settings_link[] = \sprintf( '<a href="%1s">%2s</a>',
|
||||||
'<a href="%1s">%2s</a>',
|
|
||||||
\menu_page_url( 'activitypub', false ),
|
\menu_page_url( 'activitypub', false ),
|
||||||
\__( 'Settings', 'activitypub' )
|
\__( 'Settings', 'activitypub' )
|
||||||
);
|
);
|
||||||
|
|
||||||
return \array_merge( $settings_link, $links );
|
return \array_merge( $settings_link, $actions );
|
||||||
}
|
}
|
||||||
\add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), '\Activitypub\plugin_settings_link' );
|
\add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), '\Activitypub\plugin_settings_link' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add rewrite rules
|
* Add rewrite rules
|
||||||
|
|
Loading…
Reference in a new issue