37

How to Hide My Account Listing Actions in MyListing Websites

Powered by WPCodeBox

The Hide Actions From My Account Listing Cards code snippet provides additional functionality for MyListing websites, allowing you to easily hide specific listing actions like Promote, Edit, Stats, and Delete from listing cards within the /my-account/my-listings/ area.


/**
 * Author: MyListing Club
 * Author URI: https://mylisting.club
 */

// COPY (MYLISTING CLUB DUPLICATE LISTINGS)
jQuery(document).ready(function($){
    $('.mylistingclub-duplicate-listings__copy-link').closest('li').remove()
});

// PROMOTE
jQuery(document).ready(function($){
    $('.cts-listing-action-promote').remove()
});

// DELETE
jQuery(document).ready(function($){
    $('.cts-listing-action-delete').remove()
});

// STATS
jQuery(document).ready(function($){
    $('.cts-listing-action-stats').remove()
});

// EDIT
jQuery(document).ready(function($){
    $('.cts-listing-action-edit').remove()
});

Other Snippets

WPCodeBox is a WordPress Code Snippets Manager that allows you to share your WordPress Code Snippets across your sites.