admin_print_scripts-widgets.php

admin_print_scripts-widgets.php

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wp-page-widget.4.0

do_action('admin_print_scripts-widgets.php') is found 1 times:

  • /wp-page-widgets.php line 118
    		* Add pwTextWidgets extend from wp.textWidgets
    		* Add pwMediaWidgets extend from wp.mediaWidgets
    		*/
    		if( version_compare( get_bloginfo('version'), '4.7.9', '>' ) ) {
    			do_action( 'admin_print_scripts-widgets.php' );
    			wp_enqueue_script('pw-extend-text-widgets', plugin_dir_url(__FILE__) . 'assets/js/pw-text-widgets-extend-wp-text-widgets.js', array('jquery', 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable'), PAGE_WIDGET_VERSION, true);
    			wp_enqueue_script('pw-extend-media-widgets', plugin_dir_url(__FILE__) . 'assets/js/pw-media-widgets-extend-wp-media-widgets.js', array('jquery', 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable'), PAGE_WIDGET_VERSION, true);
    		}
    
    		/*
    		* Add pwCustomHTML extend from wp.customHtmlWidgets
    

See this hook used in plugins: