Connect to wordpress
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | The ''' | + | The '''connect to wordpress''' command establishes a connection with a WordPress website. |
− | This command will set up a connection with a WordPress website using the WordPress | + | This command will set up a connection with a WordPress website using the WordPress XMLRPC API. You will need to provide the base URL for your WordPress site, and the username and password for a user with admin-level capabilities. |
== Parameters == | == Parameters == | ||
− | '''URL:''' The base URL for your WordPress website. This should be the full URL, including "https | + | '''URL:''' The base URL for your WordPress website. This should be the full URL, including "https://". For example: "https://example.com". |
'''Username:''' Your WordPress username. | '''Username:''' Your WordPress username. | ||
− | '''Password:''' Your WordPress password. Note that | + | '''Password:''' Your WordPress application password. Note that this is not your login password. Your application password can be generated from your user profile in the admin backend under the "Application Passwords" section. |
== Example == | == Example == | ||
<pre> | <pre> | ||
− | + | connect to wordpress("https://example.com", "username", "password") | |
</pre> | </pre> | ||
− | This script sets up a connection with a WordPress site at https://example.com using the username "username" and the password "password". Replace "https://example.com", "username", and "password" with your own WordPress site's URL, username, and password, respectively. | + | This script sets up a connection with a WordPress site at https://example.com using the username "username" and the password "password". Replace "https://example.com", "username", and "password" with your own WordPress site's URL, username, and application password, respectively. |
Latest revision as of 03:13, 3 July 2023
The connect to wordpress command establishes a connection with a WordPress website.
This command will set up a connection with a WordPress website using the WordPress XMLRPC API. You will need to provide the base URL for your WordPress site, and the username and password for a user with admin-level capabilities.
[edit] Parameters
URL: The base URL for your WordPress website. This should be the full URL, including "https://". For example: "https://example.com".
Username: Your WordPress username.
Password: Your WordPress application password. Note that this is not your login password. Your application password can be generated from your user profile in the admin backend under the "Application Passwords" section.
[edit] Example
connect to wordpress("https://example.com", "username", "password")
This script sets up a connection with a WordPress site at https://example.com using the username "username" and the password "password". Replace "https://example.com", "username", and "password" with your own WordPress site's URL, username, and application password, respectively.