Skip to content

Commit

Permalink
update poath to script
Browse files Browse the repository at this point in the history
  • Loading branch information
carlHandy committed Sep 4, 2024
1 parent 946f9bd commit 7056a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/class-mmgcp-checkout-payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private function mmgcp_generate_unique_callback_url() {
*/
public function mmgcp_enqueue_scripts() {
if ( is_checkout_pay_page() ) {
wp_enqueue_script( 'mmg-checkout', plugin_dir_url( __DIR__ ) . '../admin/js/mmg-checkout.js', array( 'jquery' ), '3.0', true );
wp_enqueue_script( 'mmg-checkout', plugin_dir_url( __DIR__ ) . 'admin/js/mmg-checkout.js', array( 'jquery' ), '3.0', true );
wp_localize_script(
'mmg-checkout',
'mmg_checkout_params',
Expand Down
4 changes: 2 additions & 2 deletions includes/class-mmgcp-checkout-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ public function mmgcp_enqueue_admin_scripts( $hook ) {
return;
}
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'mmgcp-admin-script', plugin_dir_url( __FILE__ ) . '../admin/js/admin-script.js', array( 'jquery' ), '1.0.0', true );
wp_enqueue_style( 'mmgcp-admin-style', plugin_dir_url( __FILE__ ) . '../admin/css/admin-style.css', array(), '1.0.0' );
wp_enqueue_script( 'mmgcp-admin-script', plugin_dir_url( __FILE__ ) . 'admin/js/admin-script.js', array( 'jquery' ), '1.0.0', true );
wp_enqueue_style( 'mmgcp-admin-style', plugin_dir_url( __FILE__ ) . 'admin/css/admin-style.css', array(), '1.0.0' );
}

/**
Expand Down

0 comments on commit 7056a4e

Please sign in to comment.