Skip to content

Instantly share code, notes, and snippets.

View RhythmShahriar's full-sized avatar
🎯
Focusing

Rhythm Shahriar RhythmShahriar

🎯
Focusing
View GitHub Profile
@RhythmShahriar
RhythmShahriar / captcha.css
Last active April 8, 2025 10:39
Simple Captcha for bootstrap form
/**-------------------------------------------------
* Simple Captcha System
* @package Code Snippets
* @link http://rhythmshahriar.com/codes/
* @author Rhythm Shahriar <[email protected]>
* @link http://rhythmshahriar.com
* @copyright Copyright © 2017, Rhythm Shahriar
---------------------------------------------------*/
body {
background-color: #2d2d2d;
<?php
/**-------------------------------------------------
* Standard MySQLi functionality
* @package Code Snippets
* @link http://rhythmshahriar.com/codes/
* @author Rhythm Shahriar <[email protected]>
* @link http://rhythmshahriar.com
* @copyright Copyright © 2017, Rhythm Shahriar
---------------------------------------------------*/
/**-------------------------------------------------
* @package Code Snippets
* @link http://rhythmshahriar.com/codes/
* @author Rhythm Shahriar <[email protected]>
* @link http://rhythmshahriar.com
* @copyright Copyright © 2017, Rhythm Shahriar
---------------------------------------------------*/
#PROPER WAY TO LOAD GOOGLE FONTS IN WORDPRESS
//load the fonts from googleapis
/*
PROJECT : BIRTHDAY CALCULATOR
PROGRAMMER : Rhythm Shahriar
URL : http://rhythmshahriar.com
EMAIL : [email protected]
COPYRIGHT : copyright © - 2014 BULKSTUDIO INC.
*/
#include <stdio.h>
#include <time.h>
<?php
/**-------------------------------------------
* @package Code Snippets
* @link http://rhythmshahriar.com/code/
* @author Rhythm <[email protected]>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
//Remove query strings from static resources
function _remove_script_version( $src ){
$parts = explode( '?ver', $src );
<?php
/**-------------------------------------------
* @package Webmaster Verification
* @link http://rhythmshahriar.com/
* @author Rhythm <[email protected]>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
// Google, Bing, Alexa Verification Codes
add_action( 'wp_head', 'rhythm_verification_codes' );
function rhythm_verification_codes () {
<?php
/**-------------------------------------------
* @package Code Snippets
* @link http://rhythmshahriar.com/code/
* @author Rhythm <[email protected]>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
add_filter('comment_form_default_fields', 'rs_remove_comment_web_url');
function rs_remove_comment_web_url($fields)
<?php
/**-------------------------------------------
* @package Code Snippets
* @link http://rhythmshahriar.com/code/
* @author Rhythm <[email protected]>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
// Use this code to remove wp generator meta
remove_action('wp_head', 'wp_generator');
<?php
/**-------------------------------------------
* @package Code Snippets
* @link http://rhythmshahriar.com/code/
* @author Rhythm <[email protected]>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
remove_action( 'genesis_meta', 'genesis_load_stylesheet' );
add_action( 'genesis_meta', 'rs_child_stylesheet_cdn' );
function rs_child_stylesheet_cdn() {