Title: Creating custom action module
Last modified: September 5, 2016

---

# Creating custom action module

 *  Resolved [supergrindel](https://wordpress.org/support/users/supergrindel/)
 * (@supergrindel)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/creating-custom-action-module/)
 * TaskScheduler 1.3.3
 * I’m struggling with the directions for creating a custom action module. Specifically,
   step two on the other notes page says: “To register your action module, just 
   instantiate the class you defined.” Then there is some example code.
 * Where does that code go? In the file with the class definitions? In a separate
   plugin of its own? In a separate file on the server?
 * I’m new to WordPress programming. So I apologize for the shallow question.
 * Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/creating-custom-action-module/#post-8148752)
 * Hi,
 * You can insert the code of your module in:
    1. your `functions.php` of your theme.
    2. you plugin.
 * Probably it is easier for you to modify existent code. Download an example module
   plugin from [this page](https://github.com/michaeluno/task-scheduler-sample-action-module).
   Install and activate it on your test site. And modify it, especially the `doAction()`
   method.
 *  Thread Starter [supergrindel](https://wordpress.org/support/users/supergrindel/)
 * (@supergrindel)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/creating-custom-action-module/#post-8182592)
 * Thank you! I was able to get the sample code working by making my own plugin.
   Now I know how to add my own custom modules to Task Scheduler pull down list.
   This is awesome!
 *  Plugin Author [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/creating-custom-action-module/#post-8188526)
 * Glad to hear you managed it!
 * Would be appreciated if you could take a few minutes to write a [review](https://wordpress.org/support/plugin/task-scheduler/reviews/?filter=5)
   on the plugin. Thanks!.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Creating custom action module’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/task-scheduler_ffffff.svg)
 * [Task Scheduler](https://wordpress.org/plugins/task-scheduler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/task-scheduler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/task-scheduler/)
 * [Active Topics](https://wordpress.org/support/plugin/task-scheduler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/task-scheduler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/task-scheduler/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/creating-custom-action-module/#post-8188526)
 * Status: resolved