Post to third party after submit

<?php

//Post Form
function post_form($entry,$form){
$post_url = 'http://mydomain.com/mypage';
$body = array(
'firstName' => $entry[1],
'lastName' => $entry[2],
'email' => $entry[3]
);
send_form($post_url,$body);
}

//Send Form
function send_form($post_url,$body){
$request = new WP_Http();
$response = $request->post($post_url, array('body' => $body));
}

//Form Actions
add_action('gform_after_submission', 'post_form', 10, 2);

?>

Post Title Change

<?php

function dankq_save_post($data,$postarr){
if($data['post_type'] == 'question'){
$data['post_content'] = 'id = ' . $_POST['ID']. '<br>title = ' . $data['post_title'] . '<br>name = ' . $data['post_name'] ; //Print to the content, use for testing then delete
$data['post_title'] = 'Q-' . $_POST['post_ID'];
$data['post_name'] = 'q-' . $_POST['post_ID'];
return $data;
}
else return $data;
}

//Action
add_filter('wp_insert_post_data','dankq_save_post',1000,2);
?>

Post Columns

add_filter( 'manage_posts_columns', 'add_column_name' );

function add_column_name($defaults) {
$defaults['positions'] = __('Positions');
$defaults['facility'] = __('Facility');
unset($defaults['comments']);
unset($defaults['author']);
unset($defaults['tags']);
unset($defaults['date']);
return $defaults;
}

function get_custom_fields($column_name, $id)
{
if( $column_name == 'positions' )
{
$positions = get_post_meta($id, 'mm_positions', true);
echo $positions;
}

if( $column_name == 'facility' )
{
$facility = get_post_meta($id, 'mm_facility', true);
echo $facility;
}

}

add_action('manage_posts_custom_column', 'get_custom_fields', 10, 2);

Shortcode

//Shortcode [myshortcode id=##### width=### height=### auto=true]
function show_myshortcode($atts){
extract(shortcode_atts(array(
'id' => 'Not Set',
'width' => '200',
'height' => '200',
'auto' => 'false',
), $atts));

return "This is the Shortcode Content: {$id} {$width} {$height} {$auto}";
}

add_shortcode('myshortcode', 'show_myshortcode');

Edit Post Link

<!-- Edit post link -->
<?php

if (edit_post_link(__("Edit Post"), '') != ''){
edit_post_link(__("Edit Post"), '');
}?>

Taxonomy Hook

add_action( wp_insert_post, 'set_brand');

function set_brand($postid){
$brand_name = get_post_meta($postid, 'Brand Name', true);
wp_set_object_terms($postid,$brand_name,'brand');
}

Add meta box to page or post

function mw_member_add_meta_box( $page, $context ) {
if ( ( 'page' === $page || 'post' === $page ) && 'advanced' === $context )
add_meta_box( 'mw-member-levels', 'Member Levels', 'mw_select_member_level', $page, 'advanced', 'low' );
}

Check parent ID

if ($post->post_parent) {
$ancestors=get_post_ancestors($post->ID);
$root=count($ancestors)-1;
$parent = $ancestors[$root];
} else {
$parent = $post->ID;
}