Print-Pro-Matic wp_localize test

This is a test of print-pro-matic using wp_localize to pass js vars to the js file. it also passes print-only elements. Like this one with the .printonly class listed in the shortcode And here is the shortcode: Actually, this should not be passed via shortcode, but rather only defined in the option page.

Print-Pro-Matic Placeholder Attribute

The placeholder attribute is used to add the print-me data to the page when print trigger and target will be added dynamically, for example: via AJAX or a Modal Window. This will not add the trigger to the page, just the targeting info for when the trigger is later displayed.

Custom Print Templates for Print-Pro-Matic

Note: This post assumes a basic understanding of WordPress templates and that a child-theme is being used. To create a custom print template we first need to define a query var to trigger the template. Add the following to the child-theme’s function.php file: function printpromatic_query_var( $vars ) { $vars[] = ‘print_view’; return $vars; } add_filter( …