This file contains hidden or 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
| # Install Tortuga from WordPress.org (https://wordpress.org/themes/tortuga/) | |
| wp theme install tortuga | |
| # Install a Theme Store Locally | |
| wp theme install ../tortuga.zip | |
| # Install a Theme Stored Remotely | |
| wp theme install https://github.com/jpen365/five-hacks-for-twenty-seventeen/archive/1.0.zip |
This file contains hidden or 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
| wp theme list |
This file contains hidden or 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
| wp core install --url=example.com --title=Website-Name --admin_user=Unique_User --admin_password=$tron9Pa55w0rd --admin_email=email@example.com |
This file contains hidden or 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
| wp core download |
This file contains hidden or 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
| wp core config --dbname=database_name --dbuser=database_user --dbpass=user_password --dbhost=localhost --dbprefix=wp_ |
This file contains hidden or 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
| function friends_only_activity_args($args) | |
| { | |
| if (!bp_is_activity_directory() || !is_user_logged_in()) | |
| { | |
| return $args; | |
| } | |
| $user_id = get_current_user_id(); | |
| $user_ids = friends_get_friend_user_ids($user_id); |
This file contains hidden or 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
| <?php | |
| function wpmudev_google_analytics() { ?> | |
| <!-- Global site tag (gtag.js) - Google Analytics --> | |
| <script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX-XX"></script> | |
| <script> | |
| window.dataLayer = window.dataLayer || []; | |
| function gtag(){dataLayer.push(arguments);} | |
| gtag('js', new Date()); | |
| gtag('config', 'UA-XXXXXXXX-XX'); |
This file contains hidden or 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
| <?php | |
| function wpmudev_google_analytics() { ?> | |
| <?php } | |
| add_action( 'wp_head', 'wpmudev_google_analytics', 10 ); |
This file contains hidden or 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
| <?php | |
| /* | |
| Plugin Name: Simple Google Analytics Plugin | |
| Plugin URI: https://premium.wpmudev.org | |
| Description: Adds a Google analytics tracking code to the <head> of your theme, by hooking to wp_head. | |
| Author: WPMU DEV | |
| Version: 1.0 | |
| */ | |
| ?> |
This file contains hidden or 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
| <head> | |
| <meta charset="<?php bloginfo( 'charset' ); ?>" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <link rel="profile" href="https://gmpg.org/xfn/11" /> | |
| <?php wp_head(); ?> | |
| </head> |
NewerOlder