wp-content/themes/ActiveTheme/functions.php
function custom_js()
{
?>
<script>
....
</script>
<?php
}
add_action('wp_head', 'custom_js');
wp-content/themes/ActiveTheme/functions.php
function custom_js()
{
?>
<script>
....
</script>
<?php
}
add_action('wp_head', 'custom_js');
wp-content/themes/ActiveTheme/functions.php
function custom_css()
{
?>
<style>
....
</style>
<?php
}
add_action('wp_head', 'custom_css');
wp-config.php
define( 'WP_POST_REVISIONS', 3 );
wp post generate --count=10 &&
wp post list --field=post_title | sort -Vr
mysql --user=User --password=OldPassword --execute="alter user 'User'@'Host' identified by 'NewPassword';"
select user,host,plugin from mysql.user;
cd &&
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar &&
php wp-cli.phar --info &&
chmod +x wp-cli.phar &&
sudo mv wp-cli.phar /usr/local/bin/wp &&
wp
timedatectl list-timezones | grep -iE "hong|kong"
timedatectl set-timezone Asia/Hong_Kong
timedatectl
hostnamectl
uname -r