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 enable_threaded_comments(){ | |
| if (!is_admin()) { | |
| if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) | |
| wp_enqueue_script('comment-reply'); | |
| } | |
| } | |
| add_action('get_header', 'enable_threaded_comments'); |
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
| /* Login Box 310x70 */ | |
| function custom_login_logo() { | |
| echo '<style type="text/css"> | |
| h1 a { background-image:url('.get_bloginfo('template_directory').'/img/login-logo.png) !important; } | |
| </style>'; | |
| } | |
| add_action('login_head', 'custom_login_logo'); |
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
| /* Footer */ | |
| function modify_footer_admin () { | |
| echo 'Your Text Here'; | |
| } | |
| add_filter('admin_footer_text', 'modify_footer_admin'); |
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
| // Disable the admin bar, set to true if you want it to be visible. | |
| show_admin_bar(FALSE); |
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
| /* Remove Top Left Logo Menu */ | |
| function annointed_admin_bar_remove() { | |
| global $wp_admin_bar; | |
| /* Remove their stuff */ | |
| $wp_admin_bar->remove_menu('wp-logo'); | |
| } | |
| add_action('wp_before_admin_bar_render', 'annointed_admin_bar_remove', 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
| function cwc_maintenance_mode() { | |
| if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) { | |
| wp_die('Maintenance, please come back soon.'); | |
| } | |
| } | |
| add_action('get_header', 'cwc_maintenance_mode'); |
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 replace_text_wps($text){ | |
| $replace = array( | |
| // 'WORD TO REPLACE' => 'REPLACE WORD WITH THIS' | |
| 'wordpress' => '<a href="#">wordpress</a>', | |
| 'excerpt' => '<a href="#">excerpt</a>', | |
| 'function' => '<a href="#">function</a>' | |
| ); | |
| $text = str_replace(array_keys($replace), $replace, $text); | |
| return $text; | |
| } |
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 my_user_contactmethods($user_contactmethods){ | |
| $user_contactmethods['twitter'] = 'Twitter Username'; | |
| $user_contactmethods['facebook'] = 'Facebook Username'; | |
| return $user_contactmethods; | |
| } | |
| add_filter('user_contactmethods', 'my_user_contactmethods'); |
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
| # To install the 5G Firewall, append the following code to your site’s root .htaccess. | |
| # 5G BLACKLIST/FIREWALL | |
| # @ http://perishablepress.com/5g-blacklist/ | |
| # 5G:[QUERY STRINGS] | |
| <ifModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{QUERY_STRING} (environ|localhost|mosconfig|scanner) [NC,OR] | |
| RewriteCond %{QUERY_STRING} (menu|mod|path|tag)\=\.?/? [NC,OR] |
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
| /* apply a natural box layout model to all elements */ | |
| * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } |
NewerOlder