Please or Register to create posts and topics.

Issue with create API route

public function initialize_routes() {
    if ($this->asgarosforum->options['enable_reactions']) {
        register_rest_route(
            'asgaros-forum/v1',
            '/reaction/(?P<post_id>\d+)/(?P<reaction>[a-zA-Z0-9-]+)',
            array(
                'methods' => 'POST',
                'callback' => array($this, 'reaction_callback'),
                'permission_callback' => '__return_true'
            )
        );
    }
}

This function on line 65 in file forum-reactions.php doesnt work for me, this function not created the new rest route, i have checkbox true in checbox reaction
Plugin version 2.4.1

Hello @romanovv

Maybe you disabled REST-routes (wp-json) via some other plugin.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Hello @asgaros,

I tried to turn off all the plugins