• Resolved yy1

    (@yy1)


    Hi,

    May I know the hook to unload & load CSS & JS for this plugin?

    Thanks in advance.

    Below is hook example from “Contact Form 7”:

    (To unload/disable)

    add_filter( 'wpcf7_load_js', '__return_false' );
    add_filter( 'wpcf7_load_css', '__return_false' );

    (To load)

    <?php
        if ( function_exists( 'wpcf7_enqueue_scripts' ) ) {
            wpcf7_enqueue_scripts();
        }
        if ( function_exists( 'wpcf7_enqueue_styles' ) ) {
            wpcf7_enqueue_styles();
        }
    ?>

    https://ww.wp.xz.cn/plugins/wpupper-share-buttons/

Viewing 1 replies (of 1 total)
  • Plugin Author Freitas Victor

    (@victorfreitas)

    Hello, to enable or disable the loading of files simply access the extra settings page in the administration of the plugin and select the desired options.

Viewing 1 replies (of 1 total)

The topic ‘Hook to unload & load CSS & JS’ is closed to new replies.