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 new_mail_from($old) { | |
| return 'admin@yourdomain.com'; | |
| } | |
| function new_mail_from_name($old) { | |
| return 'Your Blog Name'; | |
| } | |
| add_filter('wp_mail_from', 'new_mail_from'); | |
| add_filter('wp_mail_from_name', 'new_mail_from_name'); |
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
| .clearfix:before, | |
| .clearfix:after { | |
| content: " "; | |
| display: table; | |
| } | |
| .clearfix:after { | |
| clear: both; | |
| } | |
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
| $('#target div:not(#exclude)').hide(); | |
| //or | |
| $('#target').children().filter(':not(#exclude)').hide(); |
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
| // CUSTOM ADMIN LOGIN LOGO LINK | |
| function change_wp_login_url() { | |
| return bloginfo('url'); // OR ECHO YOUR OWN URL | |
| } | |
| add_filter('login_headerurl', 'change_wp_login_url'); | |
| // CUSTOM ADMIN LOGIN LOGO & ALT TEXT | |
| function change_wp_login_title() { | |
| return get_option('blogname'); // OR ECHO YOUR OWN ALT 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 isCreditCard( CC ){ | |
| if (CC.length > 19) | |
| return (false); | |
| sum = 0; mul = 1; l = CC.length; | |
| for (i = 0; i < l; i++){ | |
| digit = CC.substring(l-i-1,l-i); | |
| tproduct = parseInt(digit ,10)*mul; | |
| if (tproduct >= 10) | |
| sum += (tproduct % 10) + 1; |
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
| table tr:nth-child(even) { | |
| background: rgba(0,0,0,0.1); | |
| } |
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
| *, *:before, *:after { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; | |
| } |
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
| // hook loading of new page and edit page screens | |
| function add_custom_help_page() { | |
| //the contextual help filter | |
| add_filter('contextual_help','custom_page_help'); | |
| } | |
| function custom_page_help($help) { | |
| //keep the existing help copy | |
| echo $help; |
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
| $(imageobj).attr('src', $(imageobj) | |
| .attr('src') + '?' + Math.random() ); |
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
| .ir { | |
| text-indent: 100%; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| } |