Title: Ultimate member
Last modified: November 18, 2022

---

# Ultimate member

 *  Resolved [melchi2](https://wordpress.org/support/users/melchi2/)
 * (@melchi2)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/ultimate-member-39/)
 * Hello,
 * I used the application, I encountered an inconvenience, when we write a publication
   it does not appear on the social wall in ultimate memeber If I write the article
   in the back office, the article appears on the social wall.
    How can I resolve
   the incident? I would like to know if there is a solution so that the article
   created can appear on the social wall of all members?
    -  This topic was modified 3 years, 5 months ago by [melchi2](https://wordpress.org/support/users/melchi2/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [melchi2](https://wordpress.org/support/users/melchi2/)
 * (@melchi2)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/ultimate-member-39/#post-16232955)
 * Hello,
    Do you have a solution, thank you very much
 *  Thread Starter [melchi2](https://wordpress.org/support/users/melchi2/)
 * (@melchi2)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/ultimate-member-39/#post-16326967)
 *     ```wp-block-code
       I found a better solution a notification when a new article is created and visible to all
   
       add_filter( 'um_notifications_core_log_types', 'add_new_article_notification_type', 200 );
       function add_new_article_notification_type( $array ) {
           $array['new_article'] = array(
               'title' => 'Nouvel article publié',
               'template' => 'Un nouvel article intitulé "{article_title}" a été publié par {member}.',
               'account_desc' => 'Quand un nouvel article est publié sur le site',
           );
   
           return $array;
       }
   
       add_filter( 'um_notifications_get_icon', 'add_new_article_notification_icon', 10, 2 );
       function add_new_article_notification_icon( $output, $type ) {
           if ( $type == 'new_article' ) {
               $output = '<i class="um-icon-article" style="color: #336699"></i>';
           }
   
           return $output;
       }
   
       add_action( 'publish_post', 'send_new_article_notification', 10, 2 );
       function send_new_article_notification( $ID, $post ) {
           $author_id = $post->post_author;
           $title = $post->post_title;
           $permalink = get_permalink( $ID );
   
           um_fetch_user( $author_id );
           $author_name = um_user( 'display_name' );
   
           $vars = array(
               'article_title' => $title,
               'member' => $author_name,
               'notification_uri' => $permalink,
           );
   
           // Envoyer une notification à tous les utilisateurs du site
           $users = get_users();
           foreach ( $users as $user ) {
               UM()->Notifications_API()->api()->store_notification( $user->ID, 'new_article', $vars );
           }
       }
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Ultimate member’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/accesspress-anonymous-post_fbfbfb.
   svg)
 * [Frontend Post WordPress Plugin - AccessPress Anonymous Post](https://wordpress.org/plugins/accesspress-anonymous-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accesspress-anonymous-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accesspress-anonymous-post/)
 * [Active Topics](https://wordpress.org/support/plugin/accesspress-anonymous-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accesspress-anonymous-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accesspress-anonymous-post/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [melchi2](https://wordpress.org/support/users/melchi2/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/ultimate-member-39/#post-16326967)
 * Status: resolved