<?php
function test_get_def_transal() {
// возвращаем массив, со значениями по умолчанию
return array(
'text_1' => 'This is text 1!',
'text_2' => 'This is text 2!',
);
}
function test_get_transal() {
// применяем фильтры и возвращаем значения Опции или значения по умолчанию
return apply_filters( 'test/traslations', get_option('test_trasnl', test_get_def_transl() ) );
}