Support » Plugin: Classified Listing » Add custom item on my account menu

  • Resolved genjy16

    (@genjy16)


    Hello, I want to know how tu add a custom item inside my account menu, the one that show up in my account page. I want to add Newsletter item voice inside menu and a submission form will be displayed. I also want to remove the option for user to edit their account and just show the user_meta_key i added on my db. So, wich php files i have to modify?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author RadiusTheme

    (@techlabpro1)

    Hello,

    You need to edit this file: /wp-content/plugins/classified-listing/templates/myaccount/form-edit-account.php

    Thank you for your answer, is this also to add custom item inside the menu? Now in menu I have dashboard, listing, favorites, chat exc.. I want to add a custom item, so in that file I can add my custom item menu or I need to edit another file?

    Plugin Author RadiusTheme

    (@techlabpro1)

    Ok here is the process how you can add extra menu,

    Add menu:

    add_filter('rtcl_account_menu_items', 'add_store_menu_item_at_account_menu');
     add_filter('rtcl_my_account_endpoint', 'add_my_account_store_end_points');
    
    function add_store_menu_item_at_account_menu($items) {
          
            $item = array('store' => __('Store', 'classified-listing-store'));
            Functions::array_insert($items, 1, $item);
            return $items;
        }
    function add_my_account_store_end_points($endpoints) {
        
            $endpoints['store'] = Functions::get_option_item('rtcl_advanced_settings', 'myaccount_store_endpoint', 'store');
    
            return $endpoints;
        }
    

    For page data render hook:

    add_action('rtcl_account_store_endpoint', 'account_store_endpoint');
    function account_store_endpoint() { // here is your html}
    
    Plugin Author RadiusTheme

    (@techlabpro1)

    Hello,

    I am making this topic as resolved. Let me know if need any more support.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.