Value pairs to be made available as local variables inside the view scope. * @param string|false $default_view View to be used if the view passed is not found. Used as fallback. * @return void */ public function render($view, $vars = false, $default_view = false) { _deprecated_function(__METHOD__, '2.0.11', 'wu_get_template'); wu_get_template($view, $vars, $default_view); } // end render; /** * This function return 'slugfied' options terms to be used as options ids. * * @since 0.0.1 * @param string $term Returns a string based on the term and this plugin slug. * @return string */ public function slugfy($term) { // even the name is wrong, wtf! _deprecated_function(__METHOD__, '2.0.11', 'wu_slugify'); return wu_slugify($term); } // end slugfy; /** * Get the value of a slugified network option * * @since 1.9.6 * @param string $option_name Option name. * @param mixed $default The default value. * @return mixed */ public function get_option($option_name = 'settings', $default = array()) { _deprecated_function(__METHOD__, '2.0.11', 'wu_get_option'); return wu_get_option($option_name, $default); } // end get_option; /** * Save slugified network option. * * @since 1.9.6 * @param string $option_name The option name to save. * @param mixed $value The new value of the option. * @return boolean */ public function save_option($option_name = 'settings', $value = false) { _deprecated_function(__METHOD__, '2.0.11', 'wu_save_option'); return wu_save_option($option_name, $value); } // end save_option; /** * Delete slugified network option * * @since 1.9.6 * @param string $option_name The option name to delete. * @return boolean */ public function delete_option($option_name) { _deprecated_function(__METHOD__, '2.0.11', 'wu_delete_option'); return wu_delete_option($option_name); } // end delete_option; /** * Gets the URL for the folders created with maybe_create_folder(). * * @see $this->maybe_create_folder() * @since 2.0.0 * * @param string $folder The name of the folder. * @return string */ public function get_folder_url($folder) { _deprecated_function(__METHOD__, '2.0.11', 'wu_get_folder_url'); return wu_get_folder_url($folder); } // end get_folder_url; /** * Creates a WP Ultimo folder inside the uploads folder. Returns the path to the folder. * * @since 2.0.0 * * @deprecated * @param string $folder Name of the folder. * @return string */ public function maybe_create_folder($folder) { _deprecated_function(__METHOD__, '2.0.11', 'wu_maybe_create_folder'); return wu_maybe_create_folder($folder); } // end maybe_create_folder; /** * Drop our custom tables. * * @since 2.0.0 * @throws \Exception In case of failures, an exception is thrown. * * @return void */ public function drop_tables() { _deprecated_function(__METHOD__, '2.0.11', 'wu_drop_tables'); wu_drop_tables(); } // end drop_tables; } // end class Helper;