Hi I keep getting an Unexpected T_function error on the last line when i run the below code on a webserver running php 5.2, this runs fine on my local machine running php 5.3.6
// ***** Declare function that buids the post type
function add_post_type($name, $args = array() ) {
add_action('init',function() use($name, $args) {
can somebody help me spot whats wrong?