Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('get_avatar', 'site_get_avatar', 10, 5);
- function site_get_avatar($avatar, $id_or_email, $size, $default, $alt){
- //$avatar format includes the tag <img>
- $path = "https://borutopodcast.com/wp-content/uploads/2023/12/".rand(60,81).".png";
- $my_avatar = "<img src='".$path."' alt='".$alt."' height='".$size."' width='".$size."' />";
- return $my_avatar;
- }
- -------------
- COMMENT COOLDOWN:
- function limit_comment_frequency($commentdata) {
- $user_ip = $_SERVER['REMOTE_ADDR'];
- $last_comment = get_transient('last_comment_' . md5($user_ip));
- if ($last_comment && (time() - $last_comment) < 300) { // 300 seconds = 5 mins
- wp_redirect(add_query_arg('comment_cooldown', '1', wp_get_referer()));
- exit;
- }
- set_transient('last_comment_' . md5($user_ip), time(), 300);
- return $commentdata;
- }
- add_filter('preprocess_comment', 'limit_comment_frequency');
- -------------
- Boruto Podcast CSS
- #menu-themenu .menu-item a{
- color:#ffffff !important;
- }
- /* Span Tag */
- .h-navigation-padding .h-button span{
- color: white !important;
- }
- #menu-themenu .menu-item a:hover{
- color:#f16384 !important;
- }
- /* #menu-themenu .menu-item a:hover{
- color:#9c4357 !important;
- }
- THIS IS the darker color
- */
- a {
- color: #f16384 !important;
- }
- ::-moz-selection { /* Code for Firefox */
- color: black;
- background: #f16384;
- }
- ::selection {
- color: black;
- background: #f16384;
- }
- #submit{
- background-color:#f16384 !important;
- }
- .hentry .h-blog-categories .h-global-transition-all{
- display: none;
- }
- /* Paragraph */
- .hentry .h-text p{
- display: none;
- }
- .h-page-title__outer span h1{
- font-weight:600;
- }
- a.wp-block-latest-comments__comment-author {
- font-weight: 700;
- }
- .style-63.style-local-18-f5.position-relative.h-element {
- display: none;
- }
- p.footerfix {
- /* position: fixed; */
- text-align: center;
- }
- /* Heading */
- .h-heading .h-heading__outer h3{
- font-weight:600;
- }
- ---------
- One Piece Podcast CSS
- .d-flex.h-flex-basis.h-column__inner.h-px-lg-1.h-px-md-1.h-px-2.v-inner-lg-1.v-inner-md-1.v-inner-2.style-62.style-local-18-f4.position-relative {
- display: none;
- }
- #menu-themenu .menu-item a{
- color:#red !important;
- }
- /* Span Tag */
- .h-navigation-padding .h-button span{
- color: white !important;
- }
- #menu-themenu .menu-item a:hover{
- color:#9B1D21 !important;
- }
- /* #menu-themenu .menu-item a:hover{
- color:#9c4357 !important;
- }
- THIS IS the darker color
- */
- a {
- color: #FF0013 !important;
- }
- .h-main-menu li a{
- font-weight:700 !important;
- text-decoration-color: red !important;
- }
- ::-moz-selection { /* Code for Firefox */
- color: black;
- background: #9F0502;
- }
- ::selection {
- color: black;
- background: #9F0502;
- }
- #submit{
- background-color:#f16384 !important;
- }
- .hentry .h-blog-categories .h-global-transition-all{
- display: none;
- }
- /* Paragraph */
- .hentry .h-text p{
- display: none;
- }
- .h-page-title__outer span h1{
- font-weight:600;
- }
- a.wp-block-latest-comments__comment-author {
- font-weight: 700;
- }
- /* Flex basis */
- #copyright .h-flex-basis{
- display:none;
- }
- .h-heading .h-heading__outer h1 {
- color: #fc0202 !important;
- font-weight: 700;
- }
- .h-navigation-padding .h-heading h3 {
- font-weight: 700;
- }
Advertisement
Add Comment
Please, Sign In to add comment