Skip to content

A WordPress Plugin to code in real-time and query the database

Notifications You must be signed in to change notification settings

CAWebPublishing/caweb-dev

 
 

Repository files navigation

CAWebPublishing Development Toolbox

This plugin extends the WordPress Rest API and adds a powerful IDE built with CodeMirror to allow developers to quickly run PHP and SQL commands in realtime.

How to use this plugin

  • Install and enable this plugin
  • Keep the plugin up-to-date for important security updates.
  • Check our CHANGELOG for notifications of major updates.

Dependencies

  • Requires WordPress 6.4 or greater.
  • Requires PHP 8.1 or greater

API Endpoints

/wp-json/caweb/v1/sync - Allows for updating taxonomy ID's.

Request Parameters:

  • id - Current ID to be updated.
  • newId - New ID to replace current.
  • tax - Taxonomy to be upated. Available taxonomies include pages, posts, media, menus.
  • locations - Only if tax is menus, allows assigning a menu to a registered location.

Requst Example:

{  
    method: 'POST',  
    url: 'http://example.com/wp-json/caweb/v1/sync',  
    headers: {  
        'Authorization': Authentication Method,  
        'content-type': 'multipart/form-data',  
        'accept': '*/*',  
    },  
    data: {  
        id: 1,    
        newId: 10,    
        tax: 'pages', // Allowed taxonomies include 
        locations: ['header-menu'], // This parameter is only used for menus and     
    },  
}

About

A WordPress Plugin to code in real-time and query the database

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 85.8%
  • CSS 12.5%
  • PHP 1.5%
  • SCSS 0.2%