Joined October 2014
·

Benjamin Intal

Quezon City, Philippines
·
·

Posted to Convert snake-case to camelCase over 1 year ago

Shorter:

value.replace(/_\w/g, (m) => m[1].toUpperCase() );
Posted to Faster Ajax For WordPress over 1 year ago

Replacing the MY_AJAX_HANDLER_* hook names with the regular wp_ajax_* works fine for me, that makes the script easier to use general cases.

Achievements
1 Karma
0 Total ProTip Views