Как пользоваться переносом функций ClassiPress в дочерней теме?
Имеется дочерняя тема classipress-child от разработчиков.
В functions.php есть кусок кода:
/** * This function migrates parent theme mods to the child theme. */ function classipress_child_assign_mods_on_activation() { if ( empty( get_theme_mod( 'migrated_from_parent' ) ) ) { $theme = get_option( 'stylesheet' ); update_option( "theme_mods_$theme", get_option( 'theme_mods_classipress' ) ); set_theme_mod( 'migrated_from_parent', 1 ); } } add_action( 'after_switch_theme', 'classipress_child_assign_mods_on_activation' );
Кто сталкивался подскажите пожалуйста как этим кодом пользоваться?
Дело в том, что в Родительской теме попадаются файлы и папки которые не перезаписывает дочерняя тема...
/**
*/
Эта функция переносит моды родительской темы в дочернюю тему. Что за моды? Как можно их переносить?