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 | |
// Download this snippet as a plugin and more at: https://wordbits.io/snippet/rtp-theme-cleaner/ | |
// Created by: Matthew Harris | |
?> | |
<?php | |
function rtp_menu_shortcode($atts, $content = null) { | |
extract(shortcode_atts(array( 'menu' => null, 'menu_class' => 'rtpmenushortcode' ), $atts)); | |
return wp_nav_menu( |
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 | |
// Download this snippet as a plugin and more at: https://wordbits.io/snippet/unregister-wordpress-post-types/ | |
// Created by: Metal Potato | |
?> | |
<?php | |
function well_delete_post_type(){ | |
unregister_post_type( 'portfolio' ); | |
unregister_post_type( 'cms_block' ); | |
unregister_post_type( 'uncode_gallery' ); |
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 | |
// Download this snippet as a plugin and more at: https://wordbits.localhost/snippet/fwefwefwefdddddddddd/ | |
// Created by: jeffmatson | |
?> | |
<?php | |
echo '{%string:something%} {%string:another%}'; |
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 | |
// Download this snippet as a plugin and more at: https://wordbits.localhost/snippet/sddsafsdfwewe/ | |
// Created by: jeffmatson | |
?> | |
<?php | |
echo '{%string:something%} {%string:another%}'; |
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 | |
// Download this snippet as a plugin and more at: https://wordbits.localhost/snippet/asdfdfadsfsdwewewess/ | |
// Created by: jeffmatson | |
?> | |
<?php | |
echo '{%string:something%} {%string:another%}'; |
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 | |
// Download this snippet as a plugin and more at: https://wordbits.localhost/snippet/asdfdfadsfsdwewewe/ | |
// Created by: jeffmatson | |
?> | |
<?php | |
echo '{%string:something%}'; |
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 | |
// Download this snippet as a plugin and more at: https://wordbits.localhost/snippet/asdfdfadsfsd/ | |
// Created by: jeffmatson | |
?> | |
<?php | |
echo '{%string:something%}'; |
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 | |
// Download this snippet as a plugin and more at: https://wordbits.localhost/snippet/dsdsddsdsds/ | |
// Created by: jeffmatson | |
?> | |
<?php | |
echo '{%string:something}'; |
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 | |
// Download this snippet as a plugin and more at: https://wordbits.io/snippet/current-year-copyright-shortcode/ | |
// Created by: Tara Claeys | |
?> | |
<?php | |
function currentyear_shortcode() { $year = date('Y'); return $year; } | |
add_shortcode('currentyear', 'currentyear_shortcode'); |
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 | |
// Download this snippet as a plugin and more at: https://wordbits.io/snippet/hide-generator-meta-tag/ | |
// Created by: Topher DeRosia | |
?> | |
<?php | |
remove_action('wp_head', 'wp_generator'); |