Change Hustle Never display again message

I am wondering how to customize the "Never Display This Message Again" link in Hustle.

  • Huberson
    • Recruit

    Hello Kate,
    You can use the following code snippets as a workaround to have different message on each sub-sites:

    <?php
    add_filter( 'hustle_front_vars', function( $arr ) {
    
        $subsites = array(
            '2' => 'Site 2 message',
            '3' => 'Site 3 message',
            '15' => 'Site 15 message',
        );
    
        $arr['l10n']['never_see_again'] = $subsites[ get_current_blog_id() ];
    
        return $arr;
    } );

    Where the number on the left is simply the site ID, with the specific message on the right.
    That filter can be added inside theme functions.php file. But a better option is to create a new php file under "wp-content/mu-plugins" directory and paste the code there.

    I have also escalated it as a feature to our developers. But can't guarantee it will be added in future release or the time it might be implemented.

    Regards,
    Huberson

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.