coresocial_ajax_request_error
This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!
Definition
Arguments
Raw error-dispatch action used by validation failures. Calls supply different numbers of optional arguments; callbacks that request all seven must declare defaults for absent values.
The plugin registers its process_error() callback at priority 10. That callback emits coresocial_ajax_live_handler_error, sends JSON, and exits. To observe this raw action, use a priority below 10; later callbacks may never run.
Prefer coresocial_ajax_live_handler_error for a consistent four-argument error notification. Neither action returns a value to the caller.
Example
add_action( 'coresocial_ajax_request_error', function ( $error ) {
error_log( 'coreSocial rejected request: ' . $error );
}, 5, 1 );