How to remove the last wire on user profile ?

I need to remove the last wire update on user profile, how can I do it ?

thank you all !

  • Go to your-site/thewire/owner/username, find this post and click on 'Delete'.

    Also, go to your-site/activity, find this post and delete this item if it's there

  • Sorry, I explain wrong what I would to ask.

    I need to remove that section in profile forever, I don't want to see it in profile, I remember that many years ago there was a way to delete it, but I did not found a post about.

    Can you tell how to delete it ?

    thanks !

    ps. I think the file to edit is profile_status.php that is in thewire/views/default/thewire/profile_status.php

    What I have to do with it ? Can i delete or I have to edit something ?

     

  • Add this in your own plugin:

    //between function my_plugin_init() { }
    
    function my_plugin_init() {
    
       elgg_unextend_view('profile/status', 'thewire/profile_status');
    
    }

     

     

  • Sorry i'm trying but maybe I wrong something.

    The code complete of my plugin is this:

    <?php
    /**
     * My Elgg Plugin [Plugin]
    **/

    elgg_register_event_handler('init', 'system', 'my_plugin_init');

    function my_plugin_init() {}

     

    Where i have to add that code you gave me?

    thanks !

  • Replace

    function my_plugin_init() {}

    with

    function my_plugin_init() {
    
       elgg_unextend_view('profile/status', 'thewire/profile_status');
    
    }

    In future just paste any code between function my_plugin_init() { and } at the end, i.e.

    function my_plugin_init() {
    
       //here is your cool code
    
    }
  • thank youuuu !!!!!!! Great! Really thanks !