views/noticias/wp-content/themes/supermag/acmethemes/admin-notice/class-admin-notice-handler.php
/**

	 * Advance Demo import process

     * Active callback of advanced_import_demo_lists

	 * return array

	 */
Advance Demo import process
Active callback of advanced_import_demo_lists
return array
Advance Demo import process Active callback of advanced_import_demo_lists return array
public function demo_lists( $demo_lists ) {
        $url = 'https://demo.acmethemes.com/wp-json/acmethemes-demo-api/v1/fetch_templates/?theme-slug=supermag';
        $body_args = [
            'api_version' => wp_get_theme()['Version'],
            'site_lang' => get_bloginfo( 'language' ),
        ];
        $raw_json = wp_safe_remote_get( $url, [
            'timeout' => 100,
            'body' => $body_args,
        ] );
        if ( ! is_wp_error( $raw_json ) ) {
            $demo_server = json_decode( wp_remote_retrieve_body( $raw_json ), true );
            if( is_array( $demo_server )){
                return array_merge( $demo_lists, $demo_server );
            }
        }
        return array_merge( $demo_lists);
	}
public function demo_lists ( $ demo_lists ) { $ url = 'https://demo.acmethemes.com/wp-json/acmethemes-demo-api/v1/fetch_templates/?theme-slug=supermag' ; $ body_args = [ 'api_version' => wp_get_theme ( ) [ 'Version' ] , 'site_lang' => get_bloginfo ( 'language' ) , ] ; $ raw_json = wp_safe_remote_get ( $ url , [ 'timeout' => 100 , 'body' => $ body_args , ] ) ; if ( ! is_wp_error ( $ raw_json ) ) { $ demo_server = json_decode ( wp_remote_retrieve_body ( $ raw_json ) , true ) ; if ( is_array ( $ demo_server ) ) { return array_merge ( $ demo_lists , $ demo_server ) ; } } return array_merge ( $ demo_lists ) ; }
Advance Demo import process
 Active callback of advanced_import_demo_lists
 return array
Advance Demo import process Active callback of advanced_import_demo_lists return array
/*API version*/ /*lang*/