<?php function imnobby_translate_ninja_forms_my_list( $data, $field_id ){ // Label Change //$data['label'] = __($data['label']); // Default Value Change //$data['default_value'] = __($data['default_value']); // Selection List Field Change if ( isset($data["list"]["options"]) ) { // Do Your Changes Here // $data["list"]["options"] = __($data["list"]["options"]); } return $data; } add_filter( 'ninja_forms_field', 'imnobby_translate_ninja_forms_my_list', 10, 2 );Related Keywords: Developer, How-to, Solved, Ninja Forms Version 2.9.x, Change Text Display, Add Filter, Selection List, Text Manipulation, Hook, WordPress qTranslate Example
喜歡這篇文章嗎?
(暫時未有評分)
Loading...
(暫時未有評分)
Loading...