| 1321 | |
| 1322 | $web_app_meta = array( |
| 1323 | 'apple-status-bar' => '<meta name="apple-mobile-web-app-status-bar-style" content="black">', |
| 1324 | 'apple' => '<meta name="apple-mobile-web-app-capable" content="yes">', |
| 1325 | 'chrome_android' => '<meta name="mobile-web-app-capable" content="yes">', |
| 1326 | ); |
| 1327 | $web_app_meta_output = ''; |
| 1328 | /** |
| 1329 | * Filter the default web app meta tags for Press This. |
| 1330 | * |
| 1331 | * Default keys are 'apple', 'chrome_android' to enable mobile view on the respective OSes and 'apple_status_bar' for the iOS status bar color associated with the app.. |
| 1332 | * |
| 1333 | * @since 4.4.0 |
| 1334 | * |
| 1335 | * @param array $web_app_meta Associative array of meta tags to enable mobile web apps. |
| 1336 | */ |
| 1337 | foreach ( apply_filters( 'press_this_app_meta', $web_app_meta ) as $meta ) { |
| 1338 | $web_app_meta_output .= $meta; |
| 1339 | $web_app_meta_output .= "\n"; |
| 1340 | } |
| 1341 | echo $web_app_meta_output; |