Skip to content

Commit

Permalink
Add a cmb_pre_init event to allow overriding cmb defaults via JS
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Jun 23, 2016
1 parent 14a4bf1 commit c45669e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/cmb2.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ window.CMB2 = (function(window, document, $, undefined){
};

cmb.init = function() {
$(document).trigger( 'cmb_pre_init', cmb );

cmb.log( 'CMB2 localized data', l10n );
var $metabox = cmb.metabox();
Expand Down

0 comments on commit c45669e

Please sign in to comment.