Guest User

Untitled

a guest
Feb 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. add_action('wp_header', 'mifuncion')
  2.  
  3. echo '<link rel="manifest" href="ruta-al-plugin/manifest.json">';
  4.  
  5. echo '<link rel="manifest" href="ruta-al-plugin/manifest.php">';
  6.  
  7. <?php
  8. $manifest = array(
  9. "name"=> "Progress Web App",
  10. "version"=> "0.3",
  11. "short_name"=> "PWA"
  12. );
  13. header('Content-Type: application/json');
  14. echo json_encode($manifest);
  15. ?>
Add Comment
Please, Sign In to add comment