register_portfolio_post_type(); $atpt->register_portfolio_taxonomies(); flush_rewrite_rules(); } // Register slider post type if theme adds support if( current_theme_supports( 'array_themes_slider_support' ) ) { require_once( ARRAY_TOOLKIT_INCLUDES . 'post-types.php' ); $atpt = new Array_Toolkit_Post_Types; $atpt->register_slider_post_type(); flush_rewrite_rules(); } // Register the testimonial post type if needed. if( current_theme_supports( 'testimonials' ) ) { require_once( ARRAY_TOOLKIT_INCLUDES . 'testimonials/post-types.php' ); require_once( ARRAY_TOOLKIT_INCLUDES . 'testimonials/taxonomies.php' ); flush_rewrite_rules(); } // Save the previous version we're upgrading from $current_version = get_option( 'array_toolkit_version' ); if ( $current_version ) update_option( 'array_toolkit_previous_version', $current_version ); // Save current version update_option( 'array_toolkit_version', ARRAY_TOOLKIT_VERSION ); } } // Let's do this $array_toolkit = new Array_Toolkit;