includes/redactorredactor-ajax-functions.php

Redactor

Functions

ajax_getRoles()

ajax_getRoles()

Return the roles available for selection in the redaction dialog box.

Do not include adminstrator or editor because they always have access to the content.

ajax_getCurrentUserNameAndDate()

ajax_getCurrentUserNameAndDate()

Return general info about the user and today's date so that it can be added to a tooltip for the redaction.

ajax_updateRules()

ajax_updateRules()

An AJAX endpoint for updating a rule in the database.

ajax_deleteRules()

ajax_deleteRules()

An AJAX endpoint for deleting rules from the database by id.

ajax_addRules()

ajax_addRules()

AJAX function to add rules to the database.

ajax_getRules()

ajax_getRules()

AJAX function to retrieve rules from the database using limits and offsets