开发者 |
cloudcatch
dkjensen |
---|---|
更新时间 | 2024年8月13日 21:19 |
捐献地址: | 去捐款 |
PHP版本: | 6.2 及以上 |
WordPress版本: | 6.6.1 |
版权: | GPL-2.0-or-later |
版权网址: | 版权信息 |
/wp-content/plugins/light-modal-block
directory, or install the plugin through the WordPress plugins screen directly.Each modal is given a unique ID, which can be found inside the inspector controls of the block settings. It will look something like: Mk6I8L4haJB
To open a modal:
window.lightModalBlocks.get('modal-id-here').showModal(true);
To close a modal:
window.lightModalBlocks.get('modal-id-here').closeModal();