adds hooks docs to create_wp_error action