Wordpress plugin - can't find admin api key

AI-generated summary

The discussion revolves around setting up the Discourse plugin on a WordPress site. coffee_lover is having trouble finding the admin API key, which is required for the plugin. mikechristopher and Grex315 provide guidance on how to find or generate the API key at <yourdiscoursesite.com>/admin/api. However, coffee_lover and coffee_lover are having trouble accessing the Discourse site, which is a prerequisite for setting up the plugin.

simon clarifies that the plugin acts as an interface between WordPress and Discourse, and that setting up both is necessary. He also provides installation guides and notes that the plugin’s documentation is unclear.

Later, Yves_Lauzin asks about the difference between generating an API key for all users versus a specific user. angus explains that the API key is only used to set up the connection, and that publishing permissions are determined by the WordPress user’s posting permissions. He recommends generating an API key for a specific admin user.

Hi,

I installed the discourse plugin on wordpress its asking me for the admin api key, where do I find it ?

Thanks :slight_smile:

/admin/api

Or generate one from an admin user profile

I have installed the plugin but there’s nothing when I go to the URL, I thought maybe it needs to be done back end but I couldn’t find anything

You go to that URL on your Discourse forum not WordPress.

The discourse url is not yet setup as its asking for api key

To generate an API key go to yourdiscoursesite.com/admin/api. That is where you can generate an api key for the WordPress plugin. There will be a button that says generate key.

as I said the discourse site is not setup, plugin is installed but I can’t see discourse.. It gives me a 404 page not found

The wp-discourse plugin acts as an interface between a WordPress site and a Discourse forum. To get it to work, you need to first set up both a WordPress site and a Discourse forum. You will find the admin api key in the admin section of your forum at ‘yourdiscoursesite.com/admin/api’.

The plugin’s documentation about this is not very clear. I’ll try to add to it later this week.

Hi Simon (@simon ),

Thanks for the reply, I did add it manually to composer.json is there anything else to do ?

I’m not sure. You need to have a Discourse forum up and running to connect to your WordPress site. If you haven’t done that, you can follow either of these guides to do it:

or:
discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub

Once that is done you need to go to the Discourse site at <yourforumdomain>/admin/api and click on the button to generate a new api key. Copy and paste the api key into the Discourse API Key setting on your WordPress site.

Okay Thanks I will try that .. Much appreciated !

こんにちは、この話題を取り上げて質問があります。Discourse サイトと WordPress サイトをお持ちで、全ユーザー用 API キーと単一ユーザー用 API キーの違いは以下の通りでしょうか:

  • 全ユーザー:すべてのユーザーが Discourse と WordPress の両方を表示し、相互作用できます。
  • 単一ユーザー:接続された特定のユーザーのみが WordPress と Discourse の両方と相互作用できます。

私の理解で正しいでしょうか?
全ユーザー用 API キーを生成し、すべての権限を付与することのリスクは何でしょうか?

ありがとうございます。

こんにちは、イブさん。API キーは接続の設定にのみ使用されます。

接続が設定されると、投稿権限を持つ WordPress ユーザーは、設定されている「公開」オプションに応じて、自分の投稿を Discourse に公開できます。

特定の管理者ユーザー用に API キーを生成し、「Wordpress」と名付けることをお勧めします。