Skip to content

Instantly share code, notes, and snippets.

View mohsinrasool's full-sized avatar
💪

Mohsin Rasool mohsinrasool

💪
View GitHub Profile
@mohsinrasool
mohsinrasool / WPML: Minor edit checked by default
Created December 23, 2014 18:26
Enable the "Minor edit - dont'update translation" by WPML checkbox by default on post editing screen
/**
* Javascript added in admin screens
* 1. Enable the "Minor edit - dont'update translation" by WPML checkbox by default on post editing screen
*
* @return void
* @author mohsinrasool
**/
add_action('admin_footer', 'mr_admin_footer');
function mr_admin_footer()
@mohsinrasool
mohsinrasool / WPML Slug Fixed
Last active August 29, 2015 14:12
WPML Slug Fixed
/**
* This script adds a bulk action on post listing screen. When applied, it updates the slugs of selected translations with
* the slugs of corresponding english translations. Whole idea is to have same slugs for every translation with only difference
* of /language. For example
* /test
* /fr/test
* /de/test
*
* @author mohsinrasool
*/