screenshots
-
Hi, I showed some examples to ChatGPT it gave me the following code? Seems to be working? I wanted to share it both to get your approval and to reach those who need it.
add_filter( 'web_app_manifest', function( $manifest ) { if ( ! isset( $manifest['screenshots'] ) ) { $manifest['screenshots'] = array(); } $manifest['screenshots'] = array_merge( $manifest['screenshots'], array( array( "src" => "https://xxx.com/wp-content/uploads/ekrangoruntuleri-1.png", "type" => "image/png", "sizes" => "750x1334", "form_factor" => "narrow" ), array( "src" => "https://xxx.com/wp-content/uploads/ekrangoruntuleri-2.png", "type" => "image/png", "sizes" => "750x1334", "form_factor" => "narrow" ), array( "src" => "https://xxx.com/wp-content/uploads/ekrangoruntuleri-3.png", "type" => "image/png", "sizes" => "750x1334", "form_factor" => "narrow" ), array( "src" => "https://xxx.com/wp-content/uploads/ekrangoruntuleri-4.png", "type" => "image/png", "sizes" => "750x1334", "form_factor" => "narrow" ), array( "src" => "https://xxx.com/wp-content/uploads/ekrangoruntuleri-5.png", "type" => "image/png", "sizes" => "750x1334", "form_factor" => "narrow" ), array( "src" => "https://xxx.com/wp-content/uploads/ekrangoruntuleri-6.png", "type" => "image/png", "sizes" => "750x1334", "form_factor" => "narrow" ), array( "src" => "https://xxx.com/wp-content/uploads/ekrangoruntuleri-7.png", "type" => "image/png", "sizes" => "750x1334", "form_factor" => "narrow" ), array( "src" => "https://xxx.com/wp-content/uploads/ekrangoruntuleri-8.png", "type" => "image/png", "sizes" => "750x1334", "form_factor" => "narrow" ) ) ); return $manifest; } );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘screenshots’ is closed to new replies.