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
$name = __( 'My Stats', 'textdomain' ); |
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 echo do_shortcode( "[embed]https://twitter.com/wpmudev/status/542846265898184704[/embed]" ) ?> |
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
<p><?php apply_filters( 'product_display_footer', 'Thanks for using our product display plugin' ) ?></p> |
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
add_action( 'save_post', 'tweet_my_mood' ); | |
function tweet_my_mood( $post_id, $post ) { | |
echo get_post_meta( $post_id, 'mood', true ); | |
exit(); | |
} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.network :private_network, ip: "192.168.77.77" | |
config.vm.provision :shell, :path => "install.sh" |
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
add_filter( 'the_content', 'show_diary_details' ); | |
function show_diary_details( $content ) { | |
$diary = ''; | |
if( has_category( 'workout' ) ) { | |
$diary = '<table> | |
<tr> | |
<th>Activity</th> | |
<th>Duration</th> | |
<th>Distance</th> |
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
$custom_post_types = get_post_types( | |
array( | |
'public' => true, | |
'_builtin' => false | |
), | |
'names' | |
); | |
foreach ( $custom_post_types as $post_type ) { | |
add_action( 'manage_edit-'. $post_type . '_columns', 'revealid_add_id_column' ); |
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
== Changelog == | |
= 1.1.4 = | |
* WordPress 4.2 compatibility check | |
= 1.1.3 = | |
* Added hook for modifying the post types | |
* Added Hungarian translation |
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
<strong>bold text</bold> |
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
echo Making site $1 directory... | |
mkdir /var/www/html/$1 | |
echo Creating apache configuration file... | |
sudo touch /etc/apache2/sites-available/$1.conf | |
echo Writing configuration file... | |
echo "<VirtualHost *:80> | |
ServerName $1.$2 |