Home / Archive / Change default zoom for all PDF files in PDF Embedder Premium
Duplicate Snippet

Embed Snippet on Your Site

Change default zoom for all PDF files in PDF Embedder Premium

Set the default zoom value for all shortcodes/blocks regardless of their settings.

Code Preview
php
<?php
/**
 * Set the default zoom value for all shortcodes/blocks regardless of their settings.
 * See https://wp-pdf.com/premium-instructions/shortcodes/#zoom for available Zoom values.
 */
add_filter( 'pdfemb_premium_viewer_strings', static function( $atts ) {
	$atts['zoom']   = 'page-actual';
	$atts['fpzoom'] = 'page-actual';
	return $atts;
} );

Comments

Add a Comment