WordPress Multisite user activation hook from email

As discussed in the comments the fix is to put your wpmu_activate_user hook into a must-use plugin under /wp-content/mu-plugins/. The problem is that the email’s activation link handler, wp-activate.php, defines define( ‘WP_INSTALLING’, true ); (I guess to cover the case it’s running in the context of a newly provisioned site?) and wp-load will not load … Read more

Multisite custom user activation emails – html

Per the filter’s documentation, the $content should be formatted for use by wp_mail(). In the wp_mail() documentation, I find this: The default charset is based on the charset used on the blog. The charset can be set using the wp_mail_charset filter. So it appears you need to explicitly allow WordPress to send HTML mail. See … Read more

How to make a customize role and view a specific plugins base on that role?

You can a custom admin page with add_menu_page function. The function has a argument $capability which you can set the which users will be able to view and access the page add_menu_page https://developer.wordpress.org/reference/functions/add_menu_page/ Roles and capabilities https://wordpress.org/support/article/roles-and-capabilities/

Prevent a plugin from being automatically activated

You might want to add your own plugin to deactivate their plugin (silently). First open their main plugin file and see where the plugin hooks (or filters) in. Then unhook their plugin … and your’s as well. <?php /** Plugin Name: Deactivate other plugin */ add_action( ‘the_same_hook’, ‘removeOtherPlugin’, PHP_INT_MAX -1 ); function removeOtherPlugin() { remove_filter( current_filter(), … Read more

Bouncing scroll

Thank you both for the advice. I have checked and it’s my phone browser. I’m using a modified version of chrome called Kiwi, which allows plugins. It’s most likely a plugin conflict not a website issue.

How to make a PDF/Document library [closed]

I would use the Relevanssi plugin which allows you to search PDF files. Upload the PDFs to the media library. This will make them attachment “posts.” Relevanssi can now index them. Make sure that Relevanssi will display PDFs in the search results. As for importing your Calibre library, you might be able to use the … Read more