EG
Size: a a a
EG
A
EG
add_action(
'hivepress/v1/models/listing/update',
function($listing_id) {
$listing = HivePress\Models\Listing::query()->get_by_id($listing_id);
if ($listing) {
$title = null;
// replace one, two, three with attribute names
// Get the current category term id.
$query_obj = get_queried_object();
$term_id = $query_obj->term_id;
if ($listing->get_categories()) {
$title .= get_term_parents_list($term_id, 'category') . ', ' . $listing->display_categories();
}
if ($listing->get_title() !== $title) {
$listing->set_title($title)->save_title();
}
}
}, 1000
);
add_filter(
'hivepress/v1/models/listing',
function($model) {
$model['fields']['title']['required'] = false;
$model['fields']['title']['max_length'] = 512;
$model['fields']['title']['display_type'] = 'hidden';
return $model;
}, 1000
);
A
add_action(
'hivepress/v1/models/listing/update',
function($listing_id) {
$listing = HivePress\Models\Listing::query()->get_by_id($listing_id);
if ($listing) {
$title = null;
// replace one, two, three with attribute names
// Get the current category term id.
$query_obj = get_queried_object();
$term_id = $query_obj->term_id;
if ($listing->get_categories()) {
$title .= get_term_parents_list($term_id, 'category') . ', ' . $listing->display_categories();
}
if ($listing->get_title() !== $title) {
$listing->set_title($title)->save_title();
}
}
}, 1000
);
add_filter(
'hivepress/v1/models/listing',
function($model) {
$model['fields']['title']['required'] = false;
$model['fields']['title']['max_length'] = 512;
$model['fields']['title']['display_type'] = 'hidden';
return $model;
}, 1000
);
A
EG
EG
EG
EG
PK
JC
JC
K
woocommerce_single_product_image_thumbnail_html
хочу добавить к ее ссылке атрибует data-no-swup
И
K
K
K
K
2