Remove Life Stages

Home Forums CRM Remove Life Stages

Tagged: , ,

Viewing 4 reply threads
  • Author
    Posts
    • #18803
      michel
      Participant

      Hello,

      I’ve successfully added custom life stages with filters in my functions.php file in my child theme. Now I have a whole bunch of redundant life stages that I would like to remove.

      Any ideas on how I can do that?

    • #18846
      Shawon Chowdhury
      Moderator

      @michel

      Do you want to remove default life stages (4 available stages in WP ERP)?
      Let me know.

      Thanks!

    • #18867
      michel
      Participant

      Shawon,

      That’s correct. I don’t use leads, customers and opportunities.

    • #18885
      Shawon Chowdhury
      Moderator

      @michel,

      You have several choices in that case-
      * override the filter to show the options you are adding newly
      * remove those options from the core

      Thanks 🙂

    • #18951
      michel
      Participant

      Nice, that did the job.
      For those who are wondering about the same, use this code in your child theme’s functions.php

      
      add_filter( 'erp_crm_life_stages', function ( $life_stages ) {
         	$life_stages['student'] = 'Student';
      	$life_stages['opportunity'] = 'Parent';
      	$life_stages['subscriber'] = 'Alumni';
      	$life_stages['customer'] = 'Applicant';
      	$life_stages['teacher'] = 'Teacher';
      	$life_stages['lead'] = 'Staff';
         return $life_stages;
      });
      
      • This reply was modified 6 years, 5 months ago by michel.
Viewing 4 reply threads
  • The forum ‘CRM’ is closed to new topics and replies.

Contact Us

Reach out to us for any inquiry

You must enter full name
You must enter email
You must enter message

We received your query

We will reply to you very soon :)