From 2.1.4 to 2.2.2 / Call to undefined function ot_get_option()
-
Hi there, thanks for this amazing plugin!
I was running this function in 2.1.4 successfully but after upgrading it I got Call to undefined function ot_get_option()This is the function:
function load_cpts_sections() { $sections = ot_get_option( 'available_sections'); foreach ($sections as $section) { switch ($section) { case 'news': break; default: $sectionLabel = ucwords($section).'s'; register_post_type("$section", array( 'label' => "$sectionLabel", 'description' => '', 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => array('slug' => ''), 'query_var' => true, 'exclude_from_search' => false, 'supports' => array('title', 'editor', 'custom-fields', 'comments', 'author', ), )); break; } } } add_action('after_setup_theme', 'load_cpts_sections', 1);
Any clue on why this is happening?
CheersJ
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘From 2.1.4 to 2.2.2 / Call to undefined function ot_get_option()’ is closed to new replies.