Hi @yhazem
Please check the following sample code:
https://gist.github.com/Alimir/755db5680a464fc6469c377016cf9531
But before that, please go to the following path:
wp-content/plugins/wp-ulike/includes/classes/class-wp-ulike-cta-listener.php
And change this line:
return $this->sendError( array(
'message' => $e->getMessage(),
'messageType' => 'error',
'hasToast' => wp_ulike_setting_repo::hasToast( $this->settings_type->getType() )
) );
With this one:
return $this->sendError( array(
'message' => $e->getMessage(),
'messageType' => 'error',
'hasToast' => wp_ulike_setting_repo::hasToast( $this->data['type'] )
) );
* This is a small issue in the current version that will be fixed in the next update (5.0.0).