# wpdeepl/2.4.3.12/includes/deepl-plugin-install.php

Translation with DeepL API, version 2.4.3.12. 25 lines.

- Page: https://pluginprobe.com/plugins/wpdeepl/2.4.3.12/code/includes/deepl-plugin-install.php
- Raw: https://pluginprobe.com/plugins/wpdeepl/2.4.3.12/raw/includes/deepl-plugin-install.php
- Modified: 2025-12-08T03:16:26+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/wpdeepl/2.4.3.12/code/includes/deepl-plugin-install.php#L10-L20`.

```php
<?php


function deepl_install_plugin() {
	if ( !get_option( 'deepl_plugin_installed') ) {
		update_option( 'deepl_plugin_installed', 0 );
	}
	if ( !get_option( 'wpdeepl_metabox_post_types') ) {
		update_option( 'wpdeepl_metabox_post_types', array( 'post', 'page' ));
	}

	if ( !get_option( 'wpdeepl_metabox_context') ) {
		update_option('wpdeepl_metabox_context','side');
	}
	if ( !get_option( 'wpdeepl_metabox_priority' ) ) {
		update_option('wpdeepl_metabox_priority','high');
	}
	foreach( array( 'wpdeepl_tpost_title', 'wpdeepl_tpost_content', 'wpdeepl_tpost_excerpt' ) as $key ) {
		if( !get_option( $key ) ) {
			update_option( $key, 1 );
		}
	}

	update_option('wpdeepl_plugin_installed', 1 );
}
```
