Skip to content

Instantly share code, notes, and snippets.

@terrylinooo
Created October 10, 2023 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrylinooo/41c1da873a57c49b201d24a003f97081 to your computer and use it in GitHub Desktop.
Save terrylinooo/41c1da873a57c49b201d24a003f97081 to your computer and use it in GitHub Desktop.
airyseo_activation_function.php
/**
* 鐵人賽示範:
* 執行你在外掛啟動時需要的任何操作
*
* @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