Join

Adjust the MyListing Explore Tab Allowance for Listing Types

Don't want to mess with code snippets? Request for this to be a feature of MyListing Pro.

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

By default, MyListing allows for up to 3 ‘Explore Tabs’ per Listing Type. This code snippet allows you, the website owner, to determine how many ‘Explore Tabs’ are allowed.

Note: If you ever disable this code snippet or later reduce the number of allowed ‘Explore Tabs’ within the code snippet, you’ll need to manually remove the extra ‘Explore Tabs’ you added.’ See the video tutorial for more info.

add_filter( 'mylisting/type-editor/explore-tabs/limit', function( $limit ) {
 return 5;
} );