Category : plugins

I’m trying to add a new line in a PHP code but all to no avail. I’ve tried rn and even tried using the HTML break like but it’s just not working. These are the ones I tried: $message .= ‘<br>Thank you for registering. <br>’; in other cases I tried: $message .= nl2br(‘rn Thank you ..

Read more

I have been using this shortcode for a while but after the update, it is not longer possible… It is appearing that the problem is about hooks. here is the error message that I am getting: Error And here is a code: add_shortcode(‘wc_change_pwd_form’, ‘wc_change_pwd_form_callback’); function wc_change_pwd_form_callback() {ob_start();if (is_user_logged_in()) { global $changePasswordError, $changePasswordSuccess; if (!empty($changePasswordError)) {?><div ..

Read more

I am coding a simple wordpress plugin that has the following action: add_action( ‘wp_mail_failed’, ‘aetMailError’ ); function aetMailError( $wp_error ) { update_option(‘aet_mail_error’ , $wp_error->get_error_message( ‘wp_mail_failed’ ) ); } But I tried to display the get_option(‘aet_mail_error’) value after the email failed to send but the value is empty.. Can anyone enlighten me if i am saving ..

Read more