PluginProbe
Translation with DeepL API / 1.0
Translation with DeepL API v1.0
trunk 0.1.20180323 1.0 1.2.5.1 1.5.2.5 1.7.5 2.4.3.12 2.4.3.9 2.4.5
wpdeepl / includes / deepl-plugin-install.php

deepl-plugin-install.php in Translation with DeepL API 1.0, at includes/deepl-plugin-install.php

15 lines 408 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 register_activation_hook( __FILE__, 'deepl_plugin_activate' );
4 function deepl_plugin_activate() {
5 deepl_install_plugin();
6 }
7
8 register_deactivation_hook( __FILE__, 'deepl_plugin_deactivate' );
9 function deepl_plugin_deactivate() {
10 }
11
12 function deepl_install_plugin() {
13 update_option( 'deepl_plugin_installed', 0 );
14 update_option( 'wpdeepl_metabox_post_types', array( 'post', 'page' ));
15 }