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 | |
// Version CSS file in a theme | |
wp_enqueue_style( 'theme-styles', get_stylesheet_directory_uri() . '/style.css', array(), filemtime( get_stylesheet_directory() . '/style.css' ) ); | |
// Version JS file in a theme | |
wp_enqueue_script( 'theme-scripts', get_stylesheet_directory_uri() . '/js/scripts.js', array(), filemtime( get_stylesheet_directory() . '/js/scripts.js' ) ); |
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
// ACF fix to remove <p></p> | |
remove_filter( 'acf_the_content', 'wpautop' ); |
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
/* | |
* Force the WordPress Admin Bar to display for all visitors | |
*/ | |
add_filter( 'show_admin_bar', '__return_true' ); |
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 the_time( get_option( 'date_format' ) ); ?> |
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_action( "bp_core_activated_user", "bp_autologin_on_activation", 40, 3 ); | |
function bp_autologin_on_activation( $user_id, $key, $user) { | |
global $bp, $wpdb; | |
//simulate Bp activation | |
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
apkmania.co##div#sidebar | |
blic.rs##*.swf | |
blic.rs##a.brand_left | |
blic.rs##a.brand_right | |
blic.rs##a.slg | |
blic.rs##div#buzzBox | |
blic.rs##div#dw_feed | |
blic.rs##div#footer | |
blic.rs##div#home_tabz |
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
// remove quick edit for custom post type | |
// not needed if Title is removed | |
add_filter( 'post_row_actions', 'remove_row_actions', 10, 2 ); | |
function remove_row_actions( $unset_actions, $post ) { | |
global $current_screen; | |
if ( $current_screen->post_type != 'custom_redirect' ) return $unset_actions; | |
unset( $unset_actions['edit'] ); |
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
// Automatically Remove Links from WordPress Images | |
add_filter( 'the_content', 'attachment_image_link_remove_filter' ); | |
function attachment_image_link_remove_filter( $content ) { | |
$content = preg_replace( array( '{<a(.*?)(wp-att|wp-content/uploads)[^>]*><img}', '{ wp-image-[0-9]*" /></a>}' ), | |
array( '<img','" />' ), $content ); | |
return $content; | |
} |
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
<div> | |
I am Horizontal and Vertical centered only by CSS! | |
</div> |
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
<form> | |
<fieldset class="radioset"> | |
<ul> | |
<li><input type="radio" name="radio[]" id="radio1" checked><label for="radio1">foo</label> | |
<li><input type="radio" name="radio[]" id="radio2"><label for="radio2">bar</label> | |
<li><input type="radio" name="radio[]" id="radio3"><label for="radio3">baz</label> | |
<li><input type="radio" name="radio[]" id="radio4"><label for="radio4">qux</label> | |
</ul> | |
</fieldset> | |
</form> |
NewerOlder