This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('init', 'update_attributes_variation_product'); | |
function add_variation_product($post_id){ | |
$cars = array('c1', 'c2', 'c3' ); | |
$info = array('ww' ); | |
$att_all = []; | |
$att_all['car'] = $cars; | |
$att_all['info'] = $info; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$args = array( | |
'post_type' => array( 'product_variation',), | |
// 'post_status' => array( //(string / array) - use post status. Retrieves posts by Post Status, default value i'publish'. | |
// // 'publish', // - a published post or page. | |
// // 'pending', // - post is pending review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('init', 'generate_taxonomy_product'); | |
function generate_taxonomy_product($value=''){ | |
$my_product_attributes = array('hdd1' => 'qqqqqq', 'ram2' => 'wwwwwww'); | |
wcproduct_set_attributes(10807, $my_product_attributes); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function proccess_add_attribute($attribute) | |
{ | |
global $wpdb; | |
// check_admin_referer( 'woocommerce-add-new_attribute' ); | |
if (empty($attribute['attribute_type'])) { $attribute['attribute_type'] = 'text';} | |
if (empty($attribute['attribute_orderby'])) { $attribute['attribute_orderby'] = 'menu_order';} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
убрать кэш |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var indexOf = function (arr, id) { | |
for(var idx = 0, l = arr.length;arr[idx] && arr[idx].title !== id;idx++); | |
return idx === l ? -1 : idx; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(window).scroll(function () { | |
"use strict"; | |
$ = jQuery; | |
var elems = ['.booking_wrapper']; | |
$.each( elems, function( i, elem ) { | |
$(elem+' li').on( 'click', function(event) { | |
event.preventDefault(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
/// Manage property lists | |
/////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
add_filter( 'manage_edit-estate_property_columns', 'wpestate_my_columns' ); | |
if( !function_exists('wpestate_my_columns') ): | |
function wpestate_my_columns( $columns ) { | |
$slice=array_slice($columns,2,2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('add_meta_boxes', 'wpestate_add_property_metaboxes'); | |
if( !function_exists('wpestate_add_property_metaboxes') ): | |
function wpestate_add_property_metaboxes() { | |
add_meta_box('new_tabbed_interface', esc_html__('Property Details', 'wpresidence-core'), 'estate_tabbed_interface', 'estate_property', 'normal', 'default' ); | |
} | |
endif; // end wpestate_add_property_metaboxes | |
if( !function_exists('estate_tabbed_interface') ): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$eeee = wpestate_build_dropdown_adv('','categlist22','adv_cat','Все типы','all','advanced_search_sidebar','<li role="presentation" data-value="all">Все типы</li><li role="presentation" data-value="apartments">Apartments (11)</li><li role="presentation" data-value="condos">Condos (5)</li><li role="presentation" data-value="houses">Houses (4)</li><li role="presentation" data-value="offices">Offices (1)</li><li role="presentation" data-value="retail">Retail (1)</li><li role="presentation" data-value="villas">Villas (1)</li>'); | |
echo '<div class="search_wrapper agent_contanct_form double-class">'.$eeee.' </div>'; |