Skip to content

Commit

Permalink
Add link to settings page in plugins list
Browse files Browse the repository at this point in the history
  • Loading branch information
KingYes committed Jun 5, 2016
1 parent d2660f5 commit 60af9dd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions includes/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ public function add_edit_in_dashboard( $actions, $post ) {
return $actions;
}

public function plugin_action_links( $links ) {
$settings_link = sprintf( '<a href="%s">%s</a>', admin_url( 'admin.php?page=' . Settings::PAGE_ID ), __( 'Settings', 'elementor' ) );
array_unshift( $links, $settings_link );

return $links;
}

/**
* Admin constructor.
*/
Expand All @@ -155,5 +162,7 @@ public function __construct() {

add_filter( 'page_row_actions', [ $this, 'add_edit_in_dashboard' ], 10, 2 );
add_filter( 'post_row_actions', [ $this, 'add_edit_in_dashboard' ], 10, 2 );

add_filter( 'plugin_action_links_' . ELEMENTOR_PLUGIN_BASE, [ $this, 'plugin_action_links' ] );
}
}

0 comments on commit 60af9dd

Please sign in to comment.