# wp-print/2.31/print.php

WP-Print, version 2.31. 49 lines.

- Page: https://pluginprobe.com/plugins/wp-print/2.31/code/print.php
- Raw: https://pluginprobe.com/plugins/wp-print/2.31/raw/print.php
- Modified: 2008-07-15T14:45:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-print/2.31/code/print.php#L10-L20`.

```php
<?php
/*
+----------------------------------------------------------------+
|																							|
|	WordPress 2.5 Plugin: WP-Print 2.31										|
|	Copyright (c) 2008 Lester "GaMerZ" Chan									|
|																							|
|	File Written By:																	|
|	- Lester "GaMerZ" Chan															|
|	- http://lesterchan.net															|
|																							|
|	File Information:																	|
|	- Process Printing Page															|
|	- wp-content/plugins/wp-print/print.php									|
|																							|
+----------------------------------------------------------------+
*/


### Variables
$links_text = '';

### Actions
add_action('init', 'print_content');

### Filters
add_filter('wp_title', 'print_pagetitle');
add_filter('comments_template', 'print_template_comments');

### Print Options
$print_options = get_option('print_options');

### Determine Text Direction
$text_direction = 'ltr';
$text_align = 'left';
$text_align_opposite = 'right';
if($print_options['text_direction'] == 'rtl') {
	$text_direction = 'rtl';
	$text_align = 'right';
	$text_align_opposite = 'left';
}

### Load Print Post/Page Template
if(file_exists(TEMPLATEPATH.'/print-posts.php')) {
	include(TEMPLATEPATH.'/print-posts.php');
} else {
	include(WP_PLUGIN_DIR.'/wp-print/print-posts.php');
}
?>
```
