Skip to content

Instantly share code, notes, and snippets.

View ajeetkumarrauniyar's full-sized avatar
🏠
Working From Home

Ajeet Kumar ajeetkumarrauniyar

🏠
Working From Home
View GitHub Profile
@KaineLabs
KaineLabs / youzify_buddypress_create_custom_groups_fields.php
Last active July 3, 2024 22:54
Youzify - BuddyPress Create Custom Groups Fields
<?php
/**
* Custom Group Fields.
*/
function yzc_custom_groups_fields() {
$fields = array(
array( 'title' => 'Meetup Date & Time', 'name' => 'meetup_date', 'type' =>'text' ),
array( 'title' => 'Meetup Country', 'name' => 'meetup_country', 'type' =>'text' ),
@KaineLabs
KaineLabs / yzc_translate_activation_msg.php
Created November 27, 2018 15:10
Change Activation Message
<?php
// Change Activation Message
function yzc_translate_activation_msg( $translated_text ) {
switch ( $translated_text ) {
case 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.' :
$translated_text = 'type your new message here';
break;
}
@akshuvo
akshuvo / WordPress Repeater MetaBox.php
Last active October 10, 2025 22:37
Creating a “repeater meta-box” without a Plugin in WordPress
<?php
add_action('admin_init', 'gpm_add_meta_boxes', 2);
function gpm_add_meta_boxes() {
add_meta_box( 'gpminvoice-group', 'Custom Repeatable', 'Repeatable_meta_box_display', 'page', 'normal', 'default');
}
function Repeatable_meta_box_display() {
global $post;
$gpminvoice_group = get_post_meta($post->ID, 'customdata_group', true);
@redoPop
redoPop / .gitignore
Created June 18, 2010 22:08
Template .gitignore file for WordPress projects
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your