Skip to content
Snippets Groups Projects
hacking.md 937 B
Newer Older
  • Learn to ignore specific revisions
  • Erich's avatar
    Erich committed
    ## When should I edit core CiviCRM?
    
    
    Erich's avatar
    Erich committed
    !!! danger
          Most of the time, editing the core codebase directly
          is not the recommended way for developers to customise and extend CiviCRM.
    
          CiviCRM has multiple releases per year so direct edits to the core codebase
    
    Erich's avatar
    Erich committed
          will create upgrade issues for you.
          There are other recommended ways for the majority of scenarios:
          extensions, the APIs and hooks.
    
    Erich's avatar
    Erich committed
    
    To help you decide, here are a couple of principles:
    
    
    - Bug fixes should always be applied to core.  See [Contributing to Core](/docs/core/contributing.md) for details.
    
    Erich's avatar
    Erich committed
    - Some (but not all) enhancements to existing features may be best applied to
      core, especially if they would be useful to others.
    - New features should generally be packed as Extensions.
    - If you aren't familiar with CiviCRM, by far the best way to get a sense if
      you should be editing core is by talking with the CiviCRM developer community.