Plugins
Create, update, delete, and query Plugins.
Table Specific Information
Select
The driver uses the WordPress API to process supported filters. The driver processes other filters client-side within the driver.
- Plugin supports the '=' operator.
- Status supports the '=' operator.
- Context supports the '=' operator.
SELECT * FROM Plugins WHERE Plugin = 'hello-dolly/hello'
SELECT * FROM Plugins WHERE Status = 'inactive'
SELECT * FROM Plugins WHERE Context = 'edit'
Insert
To insert into Plugins, you must specify the Slug column.
INSERT INTO Plugins (Slug, Status) VALUES ('hello-dolly', 'active')
Update
To update the Plugin, you must specify the Plugin column.
UPDATE Plugins SET Status = 'inactive' WHERE Plugin = 'hello-dolly/hello'
Delete
To delete a Plugin, you must specify the Plugin column.
DELETE FROM Plugins WHERE Plugin = 'hello-dolly/hello'
Columns
| Name | Type | ReadOnly | References | Description |
| Plugin [KEY] | String | True |
The main plugin file name, including its relative path within the WordPress plugins directory. | |
| Name | String | True |
The display name of the plugin as shown in the WordPress admin interface. | |
| Author | String | True |
The name of the developer or organization that created the plugin. | |
| DescriptionRaw | String | True |
The unformatted text version of the plugin description as stored in its metadata. | |
| DescriptionRendered | String | True |
The formatted version of the plugin description, as rendered for display in the WordPress admin interface. | |
| NetworkOnly | Boolean | True |
Indicates whether the plugin can only be activated for the entire WordPress network in multisite installations. | |
| RequiresPhp | String | True |
Specifies the minimum required version of PHP (Hypertext Preprocessor) for the plugin to run correctly. | |
| RequiresWp | String | True |
Specifies the minimum WordPress version required for the plugin to be compatible. | |
| Status | String | False |
The current activation state of the plugin, such as active, inactive, or must-use. The allowed values are inactive, active. | |
| TextDomain | String | True |
The text domain used for internationalization and localization of the plugin's strings. | |
| Version | String | True |
The version number of the plugin as defined in its header information. | |
| AuthorUri | String | True |
The website URL of the plugin's author or development organization. | |
| PluginUri | String | True |
The website URL providing more information or documentation about the plugin. |
Pseudo-Columns
Pseudo-column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the data returned by the operation.
| Name | Type | Description |
| Slug | String |
The unique plugin directory slug from WordPress.org is required for insert operations, but it is not included in select responses. |
| Context | String |
Specifies the request context, which determines the fields and level of detail returned in the response. The allowed values are view, edit, embed. |