diff --git a/wp-revisions-control.php b/wp-revisions-control.php index f1f2339bc5c261ec8b748851ff219be95dfc4560..0bbd7eaca1a1552f7de09d06baddce5c6042b43d 100644 --- a/wp-revisions-control.php +++ b/wp-revisions-control.php @@ -58,6 +58,16 @@ class WP_Revisions_Control { return self::$__instance; } + /** + * Register actions and filters at init so others can interact, if desired. + * + * @uses add_action + * @return null + */ + private function setup() { + add_action( 'init', array( $this, 'action_init' ) ); + } + /** * Register actions and filters * @@ -65,7 +75,7 @@ class WP_Revisions_Control { * @uses add_filter * @return null */ - private function setup() { + public function action_init() { add_action( 'admin_init', array( $this, 'action_admin_init' ) ); add_filter( 'wp_revisions_to_keep', array( $this, 'filter_wp_revisions_to_keep' ), 50, 2 );