Skip to content

Instantly share code, notes, and snippets.

@imath
Created December 13, 2016 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imath/e57c1a3798697a862cbd03b76cd5f84d to your computer and use it in GitHub Desktop.
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
<?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