Connect to wordpress

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
The '''connect to wordpress''' command establishes a connection with a WordPress website.
 
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 REST 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.
+
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://" or "http://". For example: "https://example.com".
+
'''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 the password is sensitive information, so be cautious about sharing your scripts with others or posting them online.
+
'''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>
setup wordpress connection("https://example.com", "username", "password")
+
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.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox