{"id":10040606,"date":"2018-03-05T15:12:37","date_gmt":"2018-03-05T15:12:37","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/make-2\/"},"modified":"2018-03-05T15:45:10","modified_gmt":"2018-03-05T15:45:10","slug":"make-2","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/make-2\/","title":{"rendered":"Make Hyphenator config filterable"},"content":{"rendered":"<p>Hi @e2b, @odie2,<br \/>\n<code>hyphenator_hook()<\/code> (in <code>hyphenator\/plugin.php<\/code>) loads the initialization script. It would be very useful to make <code>$hyphenatorConfig<\/code> filterable (something like <code>apply_filters( &#039;hyphenator_config, $hyphenatorConfig );<\/code>). This would allow developers to extend\/change the configuration easily and would make requests like <a href=\"https:\/\/wordpress.org\/support\/topic\/hyphenate-only-mobile-view\/\">this one<\/a> from @opticaldreams4u possible.<\/p>\n<p>Also, you should use <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_add_inline_script\/\"><code>wp_add_inline_script()<\/code><\/a>.<\/p>\n<p>Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-10040606","topic","type-topic","status-publish","hentry","topic-tag-filter","topic-tag-inline-script"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10040606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10040606\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10040606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}