Remove Life Stages

Front Page 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;
      });
      
Viewing 4 reply threads
  • You must be logged in to reply to this topic.

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 message

We will reach you with your email address soon. Thank you for the time!