$otkatnye_gates = new WP_Query([
'post_type' => 'section_gates',
'post_name' => 'otkatnye-vorota',
'post_status' => 'publish',
'posts_per_page'=> -1,
'order' => 'ASC'
]);
var_dump($otkatnye_gates);
1. function urldecode_deep($value) заменить на function urldecode_deep_awp($value)
2. В function ads_queryfilter($query) заменить urldecode_deep($value) на urldecode_deep_awp($value)
\woocommerce\includes\wc-template-functions.php
// When on the checkout with an empty cart, redirect to cart page
elseif ( is_page( wc_get_page_id( 'checkout' ) ) && sizeof( WC()->cart->get_cart() ) == 0 && empty( $wp->query_vars['order-pay'] ) && ! isset( $wp->query_vars['order-received'] ) ) {
wp_redirect( get_permalink( wc_get_page_id( 'cart' ) ) );
exit;
}
<p><label for="IDLastName">Фамилия:</label>
<input type="text" name="last_name" id="IDLastName" value="" />
</p>
<input type="text" name="user_login" id="IDUserLogin" value="" />
<script>
jQuery(function($) {
$('#IDLastName').keyup(function() {
$('#IDUserLogin').val($('#IDLastName').val());
})
});
</script>
// дополнительные данные на странице профиля
add_action('show_user_profile', 'my_profile_new_fields_add');
add_action('edit_user_profile', 'my_profile_new_fields_add');
add_action('personal_options_update', 'my_profile_new_fields_update');
add_action('edit_user_profile_update', 'my_profile_new_fields_update');
function my_profile_new_fields_add($user){
?>
<h3>Дополнительные данные</h3>
<table class="form-table">
<tr>
<th><label for="gender">Пол</label></th>
<td>
<p><input type="radio" name="gender" value="мужской" <?php checked('мужской', get_user_meta($user->ID, 'gender', true)); ?>> мужской</p>
<p><input type="radio" name="gender" value="женский" <?php checked('женский', get_user_meta($user->ID, 'gender', true)); ?>> женский</p>
</td>
</tr>
</table>
<?php
}
// обновление
function my_profile_new_fields_update($user_id){
if ( !current_user_can( 'edit_user', $user_id ) )
return false;
update_usermeta( $user_id, 'gender', $_POST['gender'] );
}
if ( is_home() || is_front_page()|| is_page_template('template-blog.php')) {
wp_enqueue_script('jquery.flexslider-min', get_template_directory_uri() .'/js/jquery.flexslider-min.js','','', true);
wp_enqueue_script('jquery.flexslider.start.main', get_template_directory_uri() .'/js/jquery.flexslider.start.main.js','','', true);
}
$argsuments = array(
'taxonomy' => 'product_cat',
'child_of' => 3416,
'title_li' => '',
'depth' => 4,
'hide_empty' => 1
);
wp_list_categories( $argsuments );
$argsuments['child_of'] = 3576;
wp_list_categories( $argsuments );
/**
* Child theme language
*/
function my_child_theme_setup() {
$path = get_stylesheet_directory() . '/lang';
load_child_theme_textdomain( 'child_theme_language', $path );
}
add_action( 'after_setup_theme', 'my_child_theme_setup' );
_e( 'My translatable text goes here.', 'child_theme_language' );