Commit 207f5a47 authored by Erick Hitter's avatar Erick Hitter

Allow other to change the priority this plugin runs at.

parent 42673468
......@@ -72,13 +72,15 @@ class WP_Revisions_Control {
* Register actions and filters
*
* @uses add_action
* @uses apply_filters
* @uses add_filter
* @return null
*/
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 );
$plugin_priority = apply_filters( 'wp_revisions_control_priority', 50 );
add_filter( 'wp_revisions_to_keep', array( $this, 'filter_wp_revisions_to_keep' ), $plugin_priority, 2 );
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment