function inbound_create_default_post_type() { $lp_default_options = get_option('lp_settings_general'); if (isset($lp_default_options["default_landing_page"])) { return $lp_default_options["default_landing_page"]; } return inbound_install_example_lander(); }
/** * setup */ function setUp() { return; /* includes */ include_once LANDINGPAGES_PATH . 'modules/module.install.php'; include_once LANDINGPAGES_PATH . 'classes/class.statistics.php'; $this->lp_id = inbound_install_example_lander(); /* clear the stats */ $this->variations = Landing_Pages_Statistics::get_variations($this->lp_id); foreach ($this->variations as $vid) { Landing_Pages_Statistics::set_impression_count($this->lp_id, $vid, 0); Landing_Pages_Statistics::set_conversion_count($this->lp_id, $vid, 0); } }