logoUrl = tve_editor_css( 'images/thrive-architect-logo.png' ); $this->logoUrlWhite = tve_editor_css( 'images/thrive-architect-logo-white.png' ); $this->description = __( 'Create beautiful content & conversion optimized landing pages.', 'thrive-cb' ); $this->button = array( 'label' => __( 'View Video Tutorial', 'thrive-cb' ), 'data-source' => 'NgZO13Am6XA', 'active' => true, 'classes' => 'tvd-open-video', ); $this->moreLinks = array( 'tutorials' => array( 'class' => 'tve-leads-tutorials', 'icon_class' => 'tvd-icon-graduation-cap', 'href' => 'https://thrivethemes.com/thrive-architect-tutorials/', 'target' => '_blank', 'text' => __( 'Tutorials', 'thrive-cb' ), ), 'support' => array( 'class' => 'tve-leads-tutorials', 'icon_class' => 'tvd-icon-life-bouy', 'href' => 'https://thrivethemes.com/support/', 'target' => '_blank', 'text' => __( 'Support', 'thrive-cb' ), ), ); } /** * Reset all TCB data * * @return bool|void */ public static function reset_plugin() { $query = new WP_Query( array( 'post_type' => array( 'tcb_lightbox', TCB_CT_POST_TYPE, TCB_Symbols_Post_Type::SYMBOL_POST_TYPE, \TCB\inc\helpers\FormSettings::POST_TYPE, \TCB\UserTemplates\Template::get_post_type_name(), \TCB\SavedLandingPages\Saved_Lp::get_post_type_name(), ), 'fields' => 'ids', 'posts_per_page' => '-1', ) ); $post_ids = $query->posts; foreach ( $post_ids as $id ) { wp_delete_post( $id, true ); } $options = [ 'tve_display_save_notification', 'tve_social_fb_app_id', 'tve_comments_disqus_shortname', 'tve_comments_facebook_admins', 'tve_fa_kit', TCB\UserTemplates\Template::OPTION_KEY, ]; foreach ( $options as $option ) { delete_option( $option ); } delete_user_option( get_current_user_id(), 'tcb_pinned_elements' ); } }