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
<?php | |
/* Add Google analytics code to wp_head */ | |
add_filter('wp_head','add_analytics_to_wphead',15); | |
function add_analytics_to_wphead(){ | |
?> | |
<script> | |
//analytics or tag manager code | |
</script> |
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
<?php | |
function example_no_index{ | |
if(get_bloginfo( 'url' ) == "http://subdomain1.example.com" || "http://subdomain2.example.com") | |
{ | |
if ( is_home() ) | |
{?> | |
<meta name="robots" content="noindex,nofollow"> | |
<?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
$ vagrant provision | |
==> default: [vagrant-hostsupdater] Checking for host entries | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 vvv | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 vvv.dev | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 local.wordpr ess.dev | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 local.wordpr ess-trunk.dev | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 src.wordpres s-develop.dev | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 build.wordpr ess-develop.dev | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 buddypressor |
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
$ vagrant provision | |
==> default: [vagrant-hostsupdater] Checking for host entries | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 vvv | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 vvv.dev | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 local.wordpr ess.dev | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 local.wordpr ess-trunk.dev | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 src.wordpres s-develop.dev | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 build.wordpr ess-develop.dev | |
==> default: [vagrant-hostsupdater] found entry for: 192.168.50.4 buddypressor |
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
Vineet@Vineet MINGW64 /e/workspace/VVV (master) | |
$ git pull | |
remote: Counting objects: 395, done. | |
remote: Total 395 (delta 121), reused 121 (delta 121), pack-reused 274 | |
Receiving objects: 100% (395/395), 159.09 KiB | 0 bytes/s, done. | |
Resolving deltas: 100% (214/214), completed with 33 local objects. | |
From https://github.com/Varying-Vagrant-Vagrants/VVV | |
698f4c7..7027632 master -> origin/master | |
a7e3214..1f99518 develop -> origin/develop |
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
/comment-bubble-dark.png | |
==> default: A /srv/www/wordpress-trunk/wp-content/themes/twentyeleven/images/comment-bubble-rtl.png | |
==> default: A /srv/www/wordpress-trunk/wp-content/themes/twentyeleven/images/comment-arrow-bypostauthor.png | |
==> default: A /srv/www/wordpress-trunk/wp-content/themes/twentyeleven/images/comment-bubble.png | |
==> default: A /srv/www/wordpress-trunk/wp-content/themes/twentyeleven/images/search.png | |
==> default: A /srv/www/wordpress-trunk/wp-content/themes/twentyeleven/images/comment-arrow-dark-rtl.png | |
==> default: A /srv/www/wordpress-trunk/wp-content/themes/twentyeleven/images/headers | |
==> default: A /srv/www/wordpress-trunk/wp-content/themes/twentyeleven/images/headers/lanterns-thumbnail.jpg | |
==> default: A /srv/www/wordpress-trunk/wp-content/themes/twentyeleven/images/headers/trolley-thumbnail.jpg | |
==> default: A /srv/www/wordpress-trunk/wp-content/themes/twentyeleven/images/headers/chessboard.jpg |
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
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^(www.)?example.com$ | |
RewriteCond %{REQUEST_URI} !^/example.com/ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ /example.com/$1 | |
RewriteCond %{HTTP_HOST} ^(www.)?example.com$ | |
RewriteRule ^(/)?$example.com/index.php [L] |
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
sudo yum install php56-fpm | |
sudo yum install nginx | |
sudo yum install php56-common | |
sudo chkconfig php56-fpm on | |
sudo chkconfig php-fpm on | |
sudo service php-fpm start |
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
default: Package configuration┌──────────────────┤ Modified configuration file ├───────────────────┐│ A new version of configuration file /etc/php/7.2/cli/php.ini is ││ available, but the version installed currently has been locally ││ modified.││││ What do you want to do about modified configuration file php.ini? ││││install the package maintainer's version││keep the local version currently installed││show the differences between the versions││show a side-by-side difference between the versions││start a new shell to examine the situation││││││<Ok>│││└────────────────────────────────────────────────────────────────────┘ default: After this operation, 0 B of additional disk space will be used. | |
default: Failed to open terminal. | |
default: debconf: whiptail output the above errors, giving up! | |
default: dpkg: error processing package php7.2-cli (--configure): | |
default: subprocess installed post-installation script |
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
<?php | |
class FF_Track { | |
public function __construct { | |
add_action( 'wp_ajax_nopriv_ajax_music', array($this, 'ajax_music') ); | |
add_action( 'wp_ajax_ajax_music', array($this, 'ajax_music') ); | |
add_action( 'wp_ajax_nopriv_ajax_next_music', array($this, 'ajax_next_music') ); | |
add_action( 'wp_ajax_ajax_next_music', array($this, 'ajax_next_music') ); | |
} |
OlderNewer