WordPress admin area not sending mail (but works with WP Mail SMTP, Test Mail, and PHP mail() function)

I found the issue, had to edit /etc/php/8.3/cli/php.ini file, by adding/editing following lines : [mail function] ; For Win32 only. ; https://php.net/smtp #SMTP = localhost SMTP = mysmtpserver.domain ; https://php.net/smtp-port smtp_port = 25 username = myusername password = mypassword sendmail_from = [email protected] Then a service nginx restart. I still don’t understand why PHP is able … Read more

How to add ‘nofollow’ flag to all Tag archive hyperlinks?

I already had this challenge before and here is my personal solution for you: 1. For the tag cloud widget you can use this approach: add_filter(‘wp_tag_cloud’, ‘add_nofollow_to_tag_cloud’); function add_nofollow_to_tag_cloud($content) { // Add ‘nofollow’ to the links $content = str_replace(‘<a href=”‘, ‘<a rel=”nofollow” href=”‘, $content); return $content; } I already tested this locally and it works … Read more

Search Result to Link to a Specific Page

Sounds like you’ll have to code something custom here. I like the idea TBH – but I haven’t seen anything like this in WordPress before. As I see it, you’ll have to make a custom SQL query, or maybe even use get_terms() (Function description here) to achieve your goal. You would have to: Hook into … Read more

Elementor Form : client side javascript validation

This question isn’t really specific to WordPress since it deals with generic JS, but: instead of attaching your validation to the submit action, do it onblur for each field. That way the user gets instant feedback and can be very helpful if they’re using keyboard navigation because they only have to tab back one field.

`post_updated_messages` filter

The function you attach as a filter needs to take in a variable as an argument and return that variable once it’s done processing whatever it is you need it to do. For example: function wpse426272_messages( $messages ) { $messages[‘game’] = array( ‘Game updated’, ‘Game published’, ‘etc’ ); return $messages; } add_filter( ‘post_updated_messages’, ‘wpse426272_messages’ );