Created
June 17, 2018 16:42
-
-
Save badabingbreda/c8c9b799b4f02d1445fbb3471b0c3904 to your computer and use it in GitHub Desktop.
Toolbox Example - default text filter
This file contains hidden or 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 | |
| /** | |
| * Default return function for a text or unknown fieldtype | |
| */ | |
| public static function acf_return_text( $string , $field_object , $value , $atts = null , $postid = null ) { | |
| if ( is_array( $value ) ) return $string; | |
| return $string . $value; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment