Asking for help with your code

Hey there! I'm currently working on a CLI tool to deploy WordPress apps to DigitalOcean. Check it out! It's free and open source.

Here is what I had to look at this weekend, only about ten times longer.

function my_save_post($post_id,$post){ if(wp_is_post_revision($post_id)){return;
$post= get_post($post_id);

Yuck! So if you’re planning to ask for help with your code on forums, IRC, etc., please, do take some time to clean it up for the people that would love to help you. The WordPress Coding Standards is a good place to start.

About the author

Konstantin Kovshenin

WordPress Core Contributor, ex-Automattician, public speaker and consultant, enjoying life in Moscow. I blog about tech, WordPress and DevOps.