Answers for "wp plugins action link"

PHP
0

wp plugins action link

add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'add_action_links' );
 
function add_action_links ( $actions ) {
   $mylinks = array(
      '<a href="' . admin_url( 'options-general.php?page=myplugin' ) . '">Settings</a>',
   );
   $actions = array_merge( $actions, $mylinks );
   return $actions;
}
Posted by: Guest on August-12-2021

Browse Popular Code Answers by Language