[ Index ] |
PHP Cross Reference of GlotPress |
[Summary view] [Print] [Text view]
1 <?php 2 $meta = array( 3 'meta' => array( 4 'user_display_name' => $user->display_name, 5 'user_registered' => $user->user_registered, 6 ), 7 ); 8 9 foreach ( $recent_projects as $project ) { 10 $project->set_name = html_entity_decode( $project->set_name ); 11 unset( $project->project_id ); 12 unset( $project->set_id ); 13 } 14 15 $arr = array_merge( 16 $meta, 17 compact( 'locales', 'recent_projects' ) 18 ); 19 20 switch ( gp_get( 'filter' ) ) { 21 case 'meta': 22 echo wp_json_encode( $meta ); 23 break; 24 case 'recent_projects': 25 echo wp_json_encode( compact( 'recent_projects' ) ); 26 break; 27 default: 28 echo wp_json_encode( $arr ); 29 break; 30 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sat Sep 7 01:01:04 2024 | Cross-referenced by PHPXref 0.7.1 |