title: Overriding plugin renderer moodle
body: <p>I have site running Moodle 2.9.3+ and i was trying to customize the renderer of one existing plugin, so i found this:</p>
  
  <p><a href="https://stackoverflow.com/questions/24792170/how-to-override-a-renderer-such-that-the-functionality-of-the-overridden-rendere">How to override a renderer such that the functionality of the overridden renderer also remains available?</a></p>
  
  <p>I added the following into the core_renderer.php of my theme</p>
  
  <blockquote>
    <p>include_once($CFG->dirroot . "/course/format/topcoll/renderer.php");</p>
  </blockquote>
  
  <p>but when i tried to do</p>
  
  <pre><code>class topcoll_local_renderer extends format_topcoll_renderer {
    protected function section_header($section, $course, $onsectionpage, $sectionreturn = null) {
  ...
    }
  }
  </code></pre>
  
  <p>it runs, but it's not loading the modified function. Do I need to do anything else? the modified function is running with no issues when I alter the code directly into the plugin, but not like this. I would greatly appreciate any possible hint.</p>
  
  <p>Thanks</p>