Init hook function to call other hook in function.php
perhaps running it on the user_register hook? add_action( ‘user_register’, ‘loadAfterUserRegistrationHook’ ); function loadAfterUserRegistrationHook(){ add_action( ‘user_meta_after_user_register’, ‘createNewPost’ ); } See: http://codex.wordpress.org/Plugin_API/Action_Reference/register_form