Created
October 10, 2023 10:24
-
-
Save terrylinooo/41c1da873a57c49b201d24a003f97081 to your computer and use it in GitHub Desktop.
airyseo_activation_function.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 鐵人賽示範: | |
* 執行你在外掛啟動時需要的任何操作 | |
* | |
* @return void | |
*/ | |
function airyseo_activation_function() { | |
$default_settings = array( | |
'enable_sitemap' => false, | |
'enable_facebook_open_graph' => false, | |
'enable_twitter_card' => false, | |
); | |
add_option( 'airyseo_settings', $default_settings ); | |
} | |
register_activation_hook( __FILE__, 'airyseo_activation_function' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment