plugin_slug = $plugin_slug; if ( is_admin() ) { ( new Compatability() )->check(); if ( AuthGate::authorized() ) { //add_filter( 'post_row_actions', array( $this, 'post_row_actions' ), 10, 2 ); } } } public static function plugin_actions( $links, $plugin_info, $slug ): array { /* translators: %s is replaced with the plugin slug */ return array_merge( $links, array('settings' => sprintf(__( 'Settings', 'aibuddy-openai-chatgpt'), $slug) ) ); } public function post_row_actions( $actions, $post ) { if ( 'post' === $post->post_type ) { $actions['ai_titles'] = sprintf( '' . ' Generate Titles', $this->plugin_slug, $post->ID, $post->post_title ); } return $actions; } }