This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Регистрация строк в Polylang | |
* */ | |
function theme_add_register_strings() { | |
$strings = [ | |
'title' => false, | |
'description' => true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define( 'THEME_TEXTDOMAIN', 'theme_custom_textdomain' ); | |
/** | |
* Получаем список шаблонов | |
* */ | |
function get_category_templates( $templates ) { | |
$theme_path = get_stylesheet_directory(); |