Notifications Bar on home page only

Using the very example from the Codex in the Settings API section. Put it in the theme’s functions.php: add_action(‘admin_init’, ‘eg_settings_api_init’); function eg_settings_api_init() { add_settings_section( ‘eg_setting_section’, ‘Example settings section in reading’, ‘eg_setting_section_callback_function’, ‘reading’ ); add_settings_field( ‘eg_setting_name’, ‘Example setting Name’, ‘eg_setting_callback_function’, ‘reading’, ‘eg_setting_section’ ); register_setting(‘reading’,’eg_setting_name’); } function eg_setting_section_callback_function() { echo ‘<p>Intro text for our settings section</p>’; } … Read more

Notifications on WordPress Website [closed]

Try BuddyPress. It covers majority of your functionality. Or you can go with custom approach using Custom PHP script and AJAX with custom tables created in Database. Here is a link to such tutorial. https://www.cloudways.com/blog/real-time-php-notification-system/ EDIT : I don’t know what approach you are following. But considering you are using WordPress Post and Comments. Create … Read more

Notification When Post Approved

You can use publish_post action hook for notifying post author. function wpcs_author_notification( $post_id ) { $post = get_post( $post_id ); $author = get_userdata( $post->post_author ); $message = “Hi ” . $author->display_name . “, Your post, ” . $post->post_title . ” has just been published at ” . get_permalink( $post_id ); wp_mail( $author->user_email, “Your article is … Read more

Get moderation notifications on one post only

I solved this issue in the end without using any plugin. The solution works because this is a multi-site install. The procedure is quite simple and painless. I created a ‘contact’ subsite on the subdomain ‘http://contact.example.com’ I moved the contact ‘page’ from the main site to the sub site. I enabled comments on this new … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)