-
-
Save imath/e57c1a3798697a862cbd03b76cd5f84d to your computer and use it in GitHub Desktop.
Raise the 5 mins editing idea delay to 1 hour or make ideas always editable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Exit if accessed directly | |
defined( 'ABSPATH' ) || exit; | |
/** | |
* Raise the 5 mins editing idea delay to 1 hour | |
*/ | |
function wp_idea_stream_custom_raise_editing_time( $delay = '' ) { | |
return '+1 hour'; | |
} | |
add_filter( 'wp_idea_stream_ideas_can_edit_time', 'wp_idea_stream_custom_raise_editing_time', 10, 1 ); | |
/** | |
* Or make ideas always editable | |
*/ | |
add_filter( 'wp_idea_stream_ideas_pre_can_edit', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment