Categories
WordPress

Precheck the notification option on bbPress new topic form

Usually, if you contribute a forum sending a request, you want to know if someone replies. On bbPress you can just activate the notifications on the topic you’re creating. But it comes unchecked by default. And in a world of distracted people, assuming the most of your participant want to know if they set a […]

Categories
WordPress

Hide the subscription toggle on bbPress forums

You may need to disable the subscription to mail notifications connected to a forum. If a forum is really busy and someone, wrongly, subscribe it, she’ll start to receive tons of emails. There is not need to work at the code level to disable the subscription functionality, you can simply hide, with a CSS rule, […]

Categories
WordPress

How To Change the WP Email From Name in 3 Lines

All emails sent by a clean installation of WordPress go out with the sender name “WordPress” and the address “wordpress@yourdomain.com”. Since it’s not so nice to receive emails from a site and see in the sender name “WordPress” it is usually a good choice to change it. I don’t know why WordPress doesn’t make this […]

Categories
WordPress

Donations From January 2019 to November 2019

Dear friends, in the last 11 months 360 euro have been collected with donations and today I’ve sent that money to humanitarian initiative through Medecins Sans Frontieres and Save the Children. Hope the best for you and your families. Hope more and more children can enjoy their life with our little help and have future […]

Categories
WordPress

is_admin() WordPress Function: Misusage

Pay attention and do not use it improperly. The is_admin() function is NOT to check is the current user is an administrator! I saw this error many times and probably I did it myself years ago. The is_admin() function provided by WordPress as core function is not to check if the current user is an […]

Categories
WordPress

Dynamically Disable a Plugin

Is it possible to dynamically “disable” a plugin with a condition determined by some visitor attributes? Like the presence of a cookie? Of course without changing the plugin code! Recently I faced this problem: a rather weight plugin that integrates a chat (and more) in a WP site was make the site itself too slow. […]

Categories
WordPress

The WordPress Plugin Activation Hook

WordPress fires and activation action when a plugin is activated. Or at least it should. To be notified of its activation, a plugin can register itself to that even, using the register_activation_hook() function. There are some background concept that must be clear before start to use that action. It is not always as natural as […]

Categories
Talend

Enable/Disable tLogRow in Talend by Context Variable

You may need to add some tLogRow components in your Talend job to monitor during test the ETL progress, but then you need to turn them off when you run the job in production. Probably you have already at least two contexts: the one you use in the test environment and the one to be […]

Categories
Other

Progressive Web App: Video Lessons

If you’re looking at some material to learn PWA (Progressive Web App) there is a video course I don’t want to miss. The course is available on YouTube under “PWA Tutorial for beginners” by The Net Ninja and is really well done. The course shows step by step how to create your first PWA so […]

Categories
Talend

Adding Non JSON Data to Talend tExtractJSONFields

A JSON field was coming from a Talend route message body but other than extract JSON fields to a schema, I needed to add to the schema the topic. I don’t know if I was blind but it took me a while to understand how to create a flow of data extracted from a JSON […]