plugin_dir = WEBHOOK_BUTTONS_PLUGIN_DIR; $this->plugin_url = WEBHOOK_BUTTONS_PLUGIN_URL; add_filter( 'plugin_action_links_' . WEBHOOK_BUTTONS_PLUGIN_BASENAME, [ $this, 'action_links' ] ); } public function __get( $name ) { if ( property_exists( $this, $name ) ) { return $this->$name; } throw new Exception( esc_html( "Undefined property: $name" ) ); } public function action_links( $links ) { $settings_link = '' . esc_html__( 'Settings', 'webhook-buttons' ) . ''; array_unshift( $links, $settings_link ); return $links; } }