Created
March 26, 2020 09:29
-
-
Save kasparsd/1a5d16f0370dec8d2c7f2b44ac5c1031 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( | |
'widgets_init', | |
function() { | |
global $wp_widget_factory; | |
$widget_classes = array_map( | |
function ( $widget ) { | |
return get_class( $widget ); | |
}, | |
$wp_widget_factory->widgets | |
); | |
print_r($widget_classes);die; | |
}, | |
PHP_INT_MAX | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment