Results 1 to 1 of 1

Thread: How to remove class VA_Claim_Listing_Categories

  1. #1
    Thread Starter
    red20me's Avatar
    Join Date
    Jul 2013
    United Kingdom
    Thanked 104 Times in 93 Posts

    How to remove class VA_Claim_Listing_Categories


    I am trying to complete another Vantage project, and have one last hurdle.

    When the claim a listing process starts, the user who is claiming the listing is for some reason asked to Select their categories, and when they do so, the associated custom fields drop down for completion too. Given that the claim has not been approved at this stage, my client feels that this is 100% inappropriate, and will not accept that this is how it is supposed to work. I have to say that I agree. If a claim is to be moderated and approved, the claimee should not be able to do anything until the claim is approved.

    I am trying to get rid of the step where the categories are displayed. The problem is that all this piece of functionality is help within a class in /includes/listing-claim.php so if I make any changes there, they will just get overwritten when I upgrade Vantage.

    I have tried adding this to my functions.php
    remove_action('after_setup_theme', 'add_listing_claim_item' );
    add_action('after_setup_theme', 'mynewadd_listing_claim_item' );
    function mynewadd_listing_claim_item() {
    	$payments = get_theme_support('app-payments');
    	define( 'VA_LISTING_CLAIM_ITEM', 'listing-claim' );
    	$payments[0]['items'][] = array(
    		'type' => VA_LISTING_CLAIM_ITEM,
    		'title' => __( 'Listing Claim', APP_TD )
    	add_theme_support('app-payments', $payments[0]);
    	new VA_Claim_Listing;
    //	new VA_Claim_Listing_Categories;
    	new VA_Claim_Listing_Select_Plan;

    but it doesn't seem to make any difference. What I really want to do (I think) is somehow de-register the entire class VA_Claim_Listing_Categories so that it just doesn't form any part of the process. I'm struggling with how to do that!

    Any help gratefully received.

    Also, and particularly for any Appthemes moderator...if you could explain WHY this 'select a category' appears at this stage of the process (when other basic fields such as description/address etc. do NOT appear), that would be AWESOME! It just makes no sense to me whatsoever...


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. All banners with same css class
    By carlitospr in forum Banners Galore ClassiPress
    Replies: 6
    Last Post: July 23rd, 2013, 12:13 AM
  2. [SOLVED] Add Class to Fields
    By kristopherk in forum Advanced Custom Fields
    Replies: 6
    Last Post: March 13th, 2013, 01:12 AM
  3. Content_Left Class
    By IOGAMES in forum ClassiPress General Discussion
    Replies: 3
    Last Post: November 17th, 2011, 09:13 AM
  4. how to make a new class?
    By spymare in forum ClassiPress General Discussion
    Replies: 4
    Last Post: April 4th, 2011, 05:07 AM