Title: Hooks in premium plugin
Last modified: September 13, 2019

---

# Hooks in premium plugin

 *  Resolved [wforte](https://wordpress.org/support/users/wforte/)
 * (@wforte)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/hooks-in-premium-plugin/)
 * Hi,
 * I’d like to know about the available hooks to customise the plugin. Are there
   some way to automatize creation and edition of posts (requests)? I have a task
   manager (Redmine) to receive the requests of my customers. In Redmine, I manage
   the tasks to my dev team. I’d like to make two hooks/triggers:
 * 1. Create a request in WP (Post Type of your plugin) when I create a task in 
   Redmine.
 * 2. Change the status in WP when I change the status in Redmine.
 * Is this possible?

Viewing 1 replies (of 1 total)

 *  [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/hooks-in-premium-plugin/#post-12012056)
 * Hey,
 * Yes, you could do that. You can run the following method:
 * `JCK_SFR_Factory::create( $args )`
 * Where `$args` is:
 *     ```
       $args = array(
       	'title'       => null,
       	'description' => null,
       	'votes'       => 1,
       	'user'        => false,
       	'taxonomies'  => false,
       );
       ```
   
 * You could then hook into the `jck_sfr_post_created` action which passes the new
   post ID and use that to change the post status:
 *     ```
       $feature_request = new JCK_SFR_Feature_Request( $id );
       $feature_request->set_status( 'completed', true );
       ```
   
 * Hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Hooks in premium plugin’ is closed to new replies.

 * ![](https://ps.w.org/simple-feature-requests/assets/icon.svg?rev=2202889)
 * [Simple Feature Requests Free - User Feedback Board](https://wordpress.org/plugins/simple-feature-requests/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-feature-requests/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-feature-requests/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-feature-requests/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-feature-requests/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-feature-requests/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/hooks-in-premium-plugin/#post-12012056)
 * Status: resolved