Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mejta committed Nov 6, 2024
1 parent 33a8d0b commit 3b74641
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions assets/custom-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,8 @@ function loadGutenbergBlocks (event) {

document.addEventListener('DOMContentLoaded', loadCustomFields);
document.addEventListener('wpifycf_register_block', loadGutenbergBlocks);
jQuery(document).on('woocommerce_variations_loaded', loadCustomFields);
jQuery(document).on('menu-item-added', loadCustomFields);

if (typeof jQuery !== 'undefined') {
jQuery(document).on('woocommerce_variations_loaded', loadCustomFields);
jQuery(document).on('menu-item-added', loadCustomFields);
}
2 changes: 1 addition & 1 deletion build/wpify-custom-fields.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives', 'wp-server-side-render', 'wp-url'), 'version' => 'c4da83de954466f482f5');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives', 'wp-server-side-render', 'wp-url'), 'version' => 'f3b7f23fa936bb4b212c');
2 changes: 1 addition & 1 deletion build/wpify-custom-fields.js

Large diffs are not rendered by default.

0 comments on commit 3b74641

Please sign in to comment.