开发者 | devrix |
---|---|
更新时间 | 2020年10月14日 19:03 |
PHP版本: | 4.4.19 及以上 |
WordPress版本: | 5.5.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
jpcfsm_message_content_loaded
you can use for this regard. Assuming for example you want to wrap the message in a green box with a black border, this code can help you achieve it easily without the need to use extra plugins or style thrugh the content editor:
Add to your child theme's functions file:
add_filter('jpcfsm_message_content_loaded', function($message) {
return '<div style="background:green;border:1px solid #555">' . $message . '</div>';
});
For support threads please use the support section of this plugin here on the forums. If you want to send out a private note or idea or something, then you can contact me here
Thank you!
You must set a custom message in the plugin settings first in order for the plugin to use it to filter the default Jetpack message.