How to disable edit post option after period of time?
Ok! @Kieran and @Rarst, here it is 🙂 function stoppostedition_filter( $capauser, $capask, $param){ global $wpdb; $post = get_post( $param[2] ); if( $post->post_status == ‘publish’ ){ // Disable post edit only for authore role if( $capauser[‘author’] == 1 ){ if( ( $param[0] == “edit_post”) || ( $param[0] == “delete_post” ) ) { // How much time … Read more