Copying a plugin

May 31, 2015
Copying a plugin
  • Lets say we want to copy the list plug-in 'caneditrow' as a basis for us to start work on a new plug-in, called 'custom_can_edit'.

    First of all copy the folder:
    and rename it to
    rename caneditrow.php to custom_can_edit.php
    rename caneditrow.xml to custom_can_edit.xml

    edit custom_can_edit.xml file and change the string in:

    Code (XML):

    <name>Can Edit Row</name>
     
    to

    Code (XML):

    <name>Custom Can Edit Row</name>
     
    then replace 'canedit' in this line

    Code (XML):

    <filename plugin="caneditrow">caneditrow.php</filename>
     
    with custom_can_edit:

    Code (XML):

    <filename plugin="custom_can_edit">custom_can_edit.php</filename>
     
    Rename the class name in custom_can_edit.php

    to

    Rename the language files in the respective language folder(s)

    to