Call to `Red_Item::create()` results in fatal error
-
Calling
Red_Item::create()
results in fatal error.Fatal error: Uncaught Error: Class ‘Red_Group’ not found
in […]\redirection\models\redirect-sanitizer.php on line 182solved by adding
require_once WP_PLUGIN_DIR . '/redirection/models/group.php';
before call.Also, is there proper documentation on the correct format of
$details
array that needs to be sent toRed_Item::create()
? Or documentation on the usage of the Redirection plugin REST API? I couldn’t find any and have toerror_log
inside the plugin’s code to find how things work.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Call to `Red_Item::create()` results in fatal error’ is closed to new replies.