Add More Social Network Options to MyListing

If you care about website performance and easier administration, I recommend using a code snippet plugin like WPCodeBox (or similar) for adding code to your website.

Instructions

  1. Create a new PHP code snippet.
  2. Copy the contents of code snippet below.
  3. Paste the contents into your code snippet.
  4. Review any notes that I’ve provided.
  5. Save and enable the code snippet.
  6. Test.

Snippet

Slack

add_filter( 'mylisting\links-list', function( $links ) {

    $links['Slack'] = [
        'name' => 'Slack',
        'key' => 'Slack',
        'icon' => 'fab fa-slack',
        'color' => '#fff',
    ];

    return $links;
} );

Threads

add_filter( 'mylisting\links-list', function( $links ) {

    $links['Threads'] = [
        'name' => 'Threads',
        'key' => 'Threads',
        'icon' => 'fab fa-threads',
        'color' => '#fff',
    ];

    return $links;
} );

TikTok

add_filter( 'mylisting\links-list', function( $links ) {

    $links['TikTok'] = [
        'name' => 'TikTok',
        'key' => 'TikTok',
        'icon' => 'fab fa-tiktok',
        'color' => '#128c7e',
    ];

    return $links;
} );

Discord

add_filter( 'mylisting\links-list', function( $links ) {

    $links['Discord'] = [
        'name' => 'Discord',
        'key' => 'Discord',
        'icon' => 'fab fa-discord',
        'color' => '#7289d9',
    ];

    return $links;
} );

Goodreads

add_filter( 'mylisting\links-list', function( $links ) {

    $links['Goodreads'] = [
        'name' => 'Goodreads',
        'key' => 'Goodreads',
        'icon' => 'fab fa-goodreads-g',
        'color' => '#9c7c1c',
    ];

    return $links;
} );

🔥NEW!🔥
Property Starter Site
MyListing Add-on
Launch Sale Ends: June 24th.

Club Guarantee

If you notice an issue with this product, I’ll fix it for free and get you an updated version.

Club Guarantee

If you notice an issue with a Club Product and the problem exists on the corresponding Starter Site, I’ll fix it for free.