Advertisement
maximus87

Untitled

Oct 26th, 2018
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. add_filter('fw:ext:backups-demo:demos', 'child_the_core_filter_fw_ext_backups_demos', 999);
  2. function child_the_core_filter_fw_ext_backups_demos($demos_child) {
  3. $demos_array = array(
  4. 'the-lavish-unyson' => array(
  5. 'title' => esc_html__( 'The Lavish', 'the-core' ),
  6. 'screenshot' => 'http://updates.themefuse.com/demos/screenshots/the-lavish.png',
  7. 'preview_link' => 'https://demo.themefuse.com/responsive-wordpress-hotel-theme/',
  8. ),
  9. 'beach-resort-unyson' => array(
  10. 'title' => esc_html__( 'Beach Resort', 'the-core' ),
  11. 'screenshot' => 'http://updates.themefuse.com/demos/screenshots/beach-resort.png',
  12. 'preview_link' => 'https://demo.themefuse.com/hotel-booking-wordpress-theme/',
  13. ),
  14. 'alpine-lodge-unyson' => array(
  15. 'title' => esc_html__( 'Alpine Lodge', 'the-core' ),
  16. 'screenshot' => 'http://updates.themefuse.com/demos/screenshots/alpine-lodge.png',
  17. 'preview_link' => 'https://demo.themefuse.com/accommodation-wordpress-theme/',
  18. ),
  19. );
  20.  
  21. foreach ( $demos_array as $id => $data ) {
  22. $demo = new FW_Ext_Backups_Demo( $id, 'piecemeal', array(
  23. 'url' => 'http://updates.themefuse.com/demos/',
  24. 'file_id' => $id,
  25. ) );
  26. $demo->set_title( $data['title'] );
  27. $demo->set_screenshot( $data['screenshot'] );
  28. $demo->set_preview_link( $data['preview_link'] );
  29.  
  30. $demos[ $demo->get_id() ] = $demo;
  31.  
  32. unset( $demo );
  33. }
  34.  
  35. return $demos;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement