add_action( %27plugin_action_links_%27 . plugin_basename( __FILE__ ), function ( $links ): array { $label = esc_html__( %27Settings%27, %27text-domain%27 ); $slug = %27your-page-slug; array_unshift( $links, "<a href=%27admin.php?page=$slug%27>$label</a>" ); return $links; }, 10 );
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter