Skip to content

Instantly share code, notes, and snippets.

View hiteshwp's full-sized avatar

Hitesh Prajapati hiteshwp

View GitHub Profile
@Phoenix2k
Phoenix2k / wordpress-custom-tax-columns.php
Created December 12, 2017 14:13
WordPress: Custom taxonomy columns with sorting support
<?php
/**
* This example uses 'main-category' as a custom taxonomy and values
* from Carbon Fields for sorting https://carbonfields.net
*/
// Add custom column title
add_filter( 'manage_edit-main-category_columns', function( $columns ) {
$column_position = 2;
$before = array_slice( $columns, 0, $column_position, true );
@UltraSimplified
UltraSimplified / functions.php
Last active November 24, 2022 17:27
Override the standard WordPress password messages
/*
* Change the password reset text
*
**/
function change_password_reset_text_filter( $translated_text, $untranslated_text, $domain ) {
switch( $untranslated_text ) {
case 'Enter your new password below.':
@psamaan
psamaan / country
Last active June 25, 2025 01:00
Countries Select Option List
<select name="Country">
<option value="" selected="selected">Select Country</option>
<option value="Afghanistan">Afghanistan</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>
<option value="Anguilla">Anguilla</option>
<option value="Antarctica">Antarctica</option>
@ideag
ideag / functions.php
Last active July 22, 2021 11:43
Wordpress frontend file uploading
<?php
// simple frontend file upload
// written by Arūnas Liuiza | tinyStudio | wp.tribuna.lt
// Usage: use [tiny_upload] shortcode or get_tiny_upload()/the_tiny_upload() template tags
// Localization: replace 'theme' with your text domain string.
// ======= UPLOAD FORM =====>
// return form #1