Templates refactoring #26

Merged
nedimu merged 10 commits from package-template-refactoring into master 2018-10-04 13:21:17 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 7ceac97fed - Show all commits

View File

@@ -57,7 +57,7 @@ class Wiaas_Template_Admin_Ajax {
check_ajax_referer('wc_bundles_add_bundled_product', 'security');
$loop = intval($_POST['id']);
$emplate_category_id = intval($_POST['template_category_id']);
$template_category_id = intval($_POST['template_category_id']);
$title = $_POST['title'];
$options = $_POST['options'];

View File

@@ -34,7 +34,7 @@ function construct_template_products_class() {
* @param $template_category_slug string the name of the main wiaas category
* @return mixed
*/
public function get_template_categories_from_meta($template_id, $template_category_slug) {
public static function get_template_categories_from_meta($template_id, $template_category_slug) {
return get_post_meta($template_id, $template_category_slug, true);
}