Skip to content

Instantly share code, notes, and snippets.

View anandkumar's full-sized avatar

Anand Kumar anandkumar

View GitHub Profile
@anandkumar
anandkumar / How to Use Subversion.md
Last active August 19, 2018 14:43
How to Use Subversion

How to Use Subversion

This article is pulled from old WordPress tutorial archive using good ol' archive.org

We’ll describe here some of the basics about using subversion: starting out, changing things, and tagging releases. For more comprehensive documentation, see The SVN Book.

First, some terminology

If you're new to subversion, you'll need to know what a few words mean, so let's go over how subversion behaves to introduce some terms.

All your files will be centrally stored in the repository on our servers. From that repository, anyone can check out a copy of your plugin files onto their local machine, but, as a plugin author, only you have tho authority to check in. That means you can make changes to the files, add new files, and delete files on your local machine and upload those changes back to the central server. It's this process of checking in that updates both the files in the repository an

@anandkumar
anandkumar / inscript_in_devanagari.kbd
Created October 27, 2017 07:50
Klavaro Typing Tutor - Inscript (Devanagari)
ॊ१२३४५६७८९०-ृ\
ौैाीूबहगदजड़ॉ
ोे्िुपरकतचट
ॆंमनवलस,.य
ऒऍॅ#$%^&*()ःऋ|
औऐआईऊभङघधझ{}ऑ
ओएअइउफऱखथछठ
ऎँणऩऴळशष।य़
@anandkumar
anandkumar / keybase.md
Last active May 1, 2016 15:06
keybase.md

Keybase proof

I hereby claim:

  • I am anandkumar on github.
  • I am anandkumar (https://keybase.io/anandkumar) on keybase.
  • I have a public key whose fingerprint is CE6B 3A32 84A5 2010 140B FE5A A16A F31B 2C10 97B8

To claim this, I am signing this object:

@anandkumar
anandkumar / functions.php
Created December 15, 2015 05:20
remove pingback - wordpress
<?php
// Do not copy starting php tag
function remove_x_pingback($headers) {
unset($headers['X-Pingback']);
return $headers;
}
add_filter('wp_headers', 'remove_x_pingback');
@anandkumar
anandkumar / functions.php
Created April 20, 2015 19:10
Hide bbPress forum replies with mesage
<?php
// Do not copy opening php tag
function bb_auth_reply_view( $reply_id ) {
$reply_id = bbp_get_reply_id( $reply_id );
// Check if password is required
if ( post_password_required( $reply_id ) )
return get_the_password_form();
<?php
// add ie conditional html5 shim to header
function _s_add_ie_html5_shim () {
echo '<!--[if lt IE 9]>';
echo '<script src="' . get_template_directory_uri() . '/js/html5.js"></script>';
echo '<![endif]-->';
}
add_action('wp_head', '_s_add_ie_html5_shim');
@anandkumar
anandkumar / functions.php
Created October 8, 2014 17:54
bbPress: Remove stupid 14px avatar and resize other.
<?php
//* Do NOT include the opening php tag
//* Notice the line 7, 8, 10 and 11
function my_bbp_change_avatar_size($author_avatar, $topic_id, $size) {
$author_avatar = '';
if ($size == 14) {
return $author_avatar;
}
@anandkumar
anandkumar / functions.php
Created October 5, 2014 14:30
Remove bbpress breadcrumb
<?php
// Do not add above line.
add_filter('bbp_no_breadcrumb', function($arg) { return true; } );
Hello World!
@anandkumar
anandkumar / review-meta-box.php
Created May 15, 2014 11:03
Add support for multiple custom post type - Author hReview Plugin
<?php
// Add meta box to all post_types
// Customised by Anand Kumar @blogsynthesis.com
function ta_mytheme_post_add_box() {
global $wpar_meta_box;
$post_types = get_post_types();
foreach ( $post_types as $post_type ) {
add_meta_box($wpar_meta_box['id'], $wpar_meta_box['title'], 'ta_mytheme_post_show_box', $post_type, $wpar_meta_box['context'], $wpar_meta_box['priority']);