Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted by trey on August 1, 2017

New Paste 1 (PHP)

add_action( 'pmxi_saved_post', 'soflyy_add_password', 10, 3 );

function soflyy_add_password( $id, $xml, $u ) {
	if ( $pass = get_post_meta( $id, '_my_post_password', true ) ) {
		$post = get_post( $id );
		$post->post_password = $pass;
		wp_update_post( $post );
	}
        delete_post_meta( $id, '_my_post_password' );
}