PHP code example of tombroucke / otomaties-bootstrap-popup

1. Go to this page and download the library: Download tombroucke/otomaties-bootstrap-popup library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tombroucke / otomaties-bootstrap-popup example snippets


$dependencies = wp_script_is('otomaties-bootstrap-popup', 'enqueued') ? ['otomaties-bootstrap-popup'] : [];
bundle('app')->enqueueCss()->enqueueJs(true, $dependencies);

add_filter('otomaties_bootstrap_popup_load_bootstrap', fn() => false);

add_filter('otomaties_bootstrap_popup_bootstrap_version', fn() => '4.x');

add_filter('otomaties_bootstrap_popup_modal_dialog_classes', fn($classes) => $classes . ' modal-dialog-centered');