# WordPress to app connectivity

### How to connect your WordPress website to your app?

Connecting a website to an app is a two-step process. This involves installing the WordPress plugin and granting access. Read on for more details :

Watch this video to learn how to seamlessly connect your WordPress website to your mobile app, ensuring your content, products, pages and user experience stay in perfect sync:

#### Step 1: [Install the AppMySite plugin](https://docs.appmysite.com/app/connectivity/wordpress-connectivity/install-wordpress-plugin)

Install the AppMySite plugin on your WordPress website to connect your website and app.&#x20;

{% hint style="danger" %}
Installing the plugin on your website is mandatory for both WordPress & WooCommerce apps.&#x20;
{% endhint %}

You can download the plugin from AppMySite’s official WordPress page or install the plugin directly on your website’s admin panel.&#x20;

{% embed url="<https://scribehow.com/shared/Install_WordPress_plugin__AfPFjxVlSlyA2sv1pJST3Q>" %}

**Option 1: Download the plugin from the AppMySite’s WordPress page**

* Login to your AppMySite account. Navigate to Connectivity > Install plugin.&#x20;
* Click on Download Plugin. This will redirect you to the official [**AppMySite WordPress plugin**](https://wordpress.org/plugins/appmysite/) page.
* Click on the Download button to download the plugin's zip file.
* Now login to your website’s admin panel. Navigate to Plugins > Add Plugin from side menu.
* Click on Upload Plugin and upload the plugin zip file from your device.
* Activate the AppMySite WordPress plugin to complete the process.

{% hint style="warning" %}
The AppMySite plugin is compatible with WordPress version 6.6 and higher.
{% endhint %}

**Option 2: Use the ‘Install plugin’ button**

* Login to your AppMySite account and navigate to your app. Go to [**Connectivity > Install plugin**](https://app.appmysite.com/app/connect/wp-plugin).&#x20;
* This will redirect you to the Plugin screen of your WordPress website.
* Click on "Install Now" to install the plugin. Activate the plugin to complete the process.

**Install and activate the plugin via your website’s admin panel**

* Log in to your website’s admin panel. Navigate to Plugins > Add Plugin.
* Search for “AppMySite” in the plugin search bar.
* Click on the Install Now button to install the plugin.
* Activate the plugin to complete the process.

**Verify**

Once you’ve installed the plugin, you can verify the plugin installation. Follow the steps below to complete the process:&#x20;

* From your app dashboard, navigate to Connectivity > Install Plugin.&#x20;
* Click on Verify.&#x20;

{% hint style="warning" %}
**Optional - Plugin key for better troubleshooting**

Copy and paste this key into your WordPress website admin portal.&#x20;
{% endhint %}

{% hint style="success" %}
Our WordPress plugin key helps you access in-depth troubleshooting capabilities for better connectivity between your website and app.&#x20;
{% endhint %}

#### Step 2: Grant access&#x20;

There are two ways to connect your WordPress website to your app: using a WordPress Application Password or using WooCommerce REST API keys. The WordPress Application Password method is recommended and works for all WordPress websites, including WooCommerce. The WooCommerce REST API method is applicable only to WooCommerce websites.

[**Connect with WordPress Application-Password support**](https://docs.appmysite.com/app/connectivity/wordpress-connectivity/grant-access/wp-application-password)

WordPress Application Passwords enable website owners to generate a unique token to authorize a REST API request. Using Application Passwords, you can authorize third-party applications to make REST API requests from your website.&#x20;

You can connect your WordPress website with the app using Application Password support.&#x20;

{% hint style="warning" %}
To avoid connectivity issues, we recommend establishing connectivity using the WordPress Application Password.&#x20;
{% endhint %}

{% embed url="<https://scribehow.com/shared/WP_Application-Password__l1nh8vj5T2yeLYOLu9S04Q>" %}

The following points highlight how to connect your website and app with WordPress Application Passwords:

* Login to your WordPress website’s admin panel.&#x20;
* Navigate to Users >Profile from the side menu. Scroll down to the **Application Passwords** section.&#x20;
* Enter a name for your application password in the **New Application Password Name** field and click on Add New Application Password button.&#x20;
* Copy your admin account’s username and the newly generated application password.

{% hint style="warning" %}
To achieve connectivity between your website and app, it is mandatory that you have administrator access.&#x20;
{% endhint %}

Once you have the application password, return to your AppMySite account and navigate to [**Connectivity > Grant Acess**](https://app.appmysite.com/app/connect/wp-grant-access). Follow the steps below:

* Turn on the WordPress toggle on the Grant Access screen.&#x20;
* Paste your website’s administrator username and the application password generated earlier.&#x20;
* Click on Verify. If it is unsuccessful, visit the Troubleshooting screen to diagnose and fix your connectivity issues.&#x20;

Using an application password to connect your website and app is essential for enabling login and signup support for blog and CMS page website types, supporting custom post taxonomy, and more.&#x20;

{% hint style="warning" %}
Application Password support is available for the AppMySite WP plugin with code version 3.0.0 and higher. Update your AppMySite WP plugin to the latest version to use application password support.
{% endhint %}

[**Connect with WooCommerce REST API Keys**](https://docs.appmysite.com/app/connectivity/wordpress-connectivity/grant-access/woocommerce-rest-api)

Generate WooCommerce REST API keys and submit them in the connectivity section of your app to connect your online store and app. However, it is recommended you establish connectivity using WordPress Application Passwords.&#x20;

Visit this guide to learn more:&#x20;

{% embed url="<https://scribehow.com/shared/Connect_with_WooCommerce_REST_API_Keys__g6ZapSW2RJKBXPCeq958Pw>" %}

* Login to the admin panel of your WordPress website.
* Navigate to WooCommerce > Settings from the side menu.
* Select the Advanced tab on the WooCommerce settings screen.
* Now, click on the REST API tab and then on the Add key button. Fill out the following details:
  * Description: Enter a friendly name for easy identification.
  * User: Select the administrator of the website.
  * Permission: Choose **Read/Write** from the drop-down menu.
* You will find the generated REST API keys. Copy the Consumer key and Consumer secret,  return them to your AppMySite account and paste them into the relevant fields.&#x20;
* Click Verify.

{% hint style="warning" %}
The WooCommerce plugin on your WordPress website must be updated to the latest version while generating REST API keys. You may not be able to achieve connectivity if an older version of the WooCommerce plugin is installed on your website.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appmysite.com/app/connectivity/wordpress-connectivity/wordpress-to-app-connectivity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
