laipower/wp-content/plugins/easy-digital-downloads/assets/js/admin/dashboard/index.js

15 lines
309 B
JavaScript

jQuery( document ).ready( function( $ ) {
if ( $( '#edd_dashboard_sales' ).length ) {
$.ajax( {
type: 'GET',
data: {
action: 'edd_load_dashboard_widget',
},
url: ajaxurl,
success: function( response ) {
$( '#edd_dashboard_sales .edd-loading' ).html( response );
},
} );
}
} );