• Resolved yliya14

    (@yliya14)


    Hello dear developers! Please tell me a hook to hide fields in account details: selection of location (state), zip code and completely social user profiles. Thank you for the wonderful plugin! And your topics are cool too!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter yliya14

    (@yliya14)

    I came up with the locations. But the links to social media never reach me. I can’t put it away. Please respond as soon as you can.

    Plugin Support Ali Akbar Reyad

    (@alireyad)

    Hi,
    You can remove it by overriding the template plugins/classified-listing/templates/myaccount/form-edit-account.php

    1. Copy the template
    2. Paste in child theme directory under classified-listing/myaccount/ directory
    3. Then remove the fields which you don’t want

    Thank you

    Thread Starter yliya14

    (@yliya14)

    No. You need to cut it from the file TemplateHooks.php the following code:

    add_action( 'rtcl_edit_account_form', [ __CLASS__, 'edit_account_form_social_profile_field' ], 70 );
    		add_action( 'rtcl_edit_account_form', [ __CLASS__, 'edit_account_form_location_field' ], 50 );
    		if ( Functions::has_map() ) {
    			if ( 'geo' === Functions::location_type() ) {
    				remove_action( 'rtcl_edit_account_form', [ __CLASS__, 'edit_account_form_location_field' ], 50 );
    				add_action( 'rtcl_edit_account_form', [ __CLASS__, 'edit_account_form_geo_location' ], 50 );
    			}
    			add_action( 'rtcl_edit_account_form', [ __CLASS__, 'edit_account_map_field' ], 60 );
    		}
    		</div>

    Then all these lines will be removed from the profile editing form

    Plugin Support Ali Akbar Reyad

    (@alireyad)

    Hi,
    Great. If you understand hooks, you can do it easily.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘hide account details’ is closed to new replies.