Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('fw:ext:backups-demo:demos', 'child_the_core_filter_fw_ext_backups_demos', 999);
- function child_the_core_filter_fw_ext_backups_demos($demos_child) {
- $demos_array = array(
- 'the-lavish-unyson' => array(
- 'title' => esc_html__( 'The Lavish', 'the-core' ),
- 'screenshot' => 'http://updates.themefuse.com/demos/screenshots/the-lavish.png',
- 'preview_link' => 'https://demo.themefuse.com/responsive-wordpress-hotel-theme/',
- ),
- 'beach-resort-unyson' => array(
- 'title' => esc_html__( 'Beach Resort', 'the-core' ),
- 'screenshot' => 'http://updates.themefuse.com/demos/screenshots/beach-resort.png',
- 'preview_link' => 'https://demo.themefuse.com/hotel-booking-wordpress-theme/',
- ),
- 'alpine-lodge-unyson' => array(
- 'title' => esc_html__( 'Alpine Lodge', 'the-core' ),
- 'screenshot' => 'http://updates.themefuse.com/demos/screenshots/alpine-lodge.png',
- 'preview_link' => 'https://demo.themefuse.com/accommodation-wordpress-theme/',
- ),
- );
- foreach ( $demos_array as $id => $data ) {
- $demo = new FW_Ext_Backups_Demo( $id, 'piecemeal', array(
- 'url' => 'http://updates.themefuse.com/demos/',
- 'file_id' => $id,
- ) );
- $demo->set_title( $data['title'] );
- $demo->set_screenshot( $data['screenshot'] );
- $demo->set_preview_link( $data['preview_link'] );
- $demos[ $demo->get_id() ] = $demo;
- unset( $demo );
- }
- return $demos;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement