• I keep getting this error:

    Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /home/public_html/.com/wp-content/plugins/property/lib/jw_custom_posts.php on line 119

    and my code looks like this:

    // At WordPress' init, register the taxonomy
            $this->init(
                function() use($taxonomy_name, $plural, $post_type_name, $options)
                {
                    // Override defaults with user provided options
    
                    $options = array_merge(
                        array(
                             "hierarchical" => true,
                             "label" => $taxonomy_name,
                             "singular_label" => $plural,
                             "show_ui" => true,
                             "query_var" => true,
                             "rewrite" => array("slug" => strtolower($taxonomy_name))
                        ),
                        $options
                    );
    
                    // name of taxonomy, associated post type, options
                    register_taxonomy(strtolower($taxonomy_name), $post_type_name, $options);
                });
        }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Hacing issue with Developing plug in.’ is closed to new replies.