How to disabled «indexables» in Yoast SEO / Как отключить «indexables» в Yoast SEO

Привет 🙂 Нашел решение как отключить «indexables» в Yoast SEO
1) В файле functions.php вставляем строчку
add_filter(‘wpseo_should_save_indexable’,’wp_kama_wpseo_should_save_indexable_filter’, 10, 2);
function wp_kama_wpseo_should_save_indexable_filter($intend_to_save, $indexable) {return false;}
2) Далее ставим плагин «Yoast Test Helper»
3) Заходим в него и жмем кнопку «Reset Indexables tables & Migrations»
4) Готово. Теперь таблицы в БД не буду заполняться.
Hi 🙂 Found a solution how to disable «indexables» in Yoast SEO
1) In the functions.php file, insert the line
add_filter(‘wpseo_should_save_indexable’,’wp_kama_wpseo_should_save_indexable_filter’, 10, 2);
function wp_kama_wpseo_should_save_indexable_filter($intend_to_save, $indexable) {return false;}
2) Next, install the plugin «Yoast Test Helper»
3) We go into it and press the button «Reset Indexables tables & Migrations»
4) Done. Now the tables in the database will not be filled.