enasattar
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Use ajax in admin areaThank you for all things .
Forum: Developing with WordPress
In reply to: Use ajax in admin areaThank you very much for your help , Where i can found function to active payments methode?
I search at woocommerce but i did not found itthank you
Forum: Developing with WordPress
In reply to: Use ajax in admin areaHi Mr.threadi
I did the code thank you for it,
I know i should create the code by my self but i dont know what i should write in my action function / I need to write some thing to update plugin state active and deactivefunction myajaxfunction_check() { global $state; if( !empty($_POST['nonce']) && wp_verify_nonce( $_POST['nonce'], 'plugins_controller' ) ) { array( 'active'=>$state, ); } else array( 'deactive'=>$state, ); }could you help , cuse i dont know what i should do, thank you .
Forum: Developing with WordPress
In reply to: Use ajax in admin areaMr,threadi
Thank you for your response , realy thank you , I add the code and change the url ajax but is this code correct
‘ajax_nonce’ => wp_create_nonce(‘plugins_controller’)and in js file is
$.ajax({ url: plugins_controller.ajax_url, type: "POST", data: data, beforeSend: function (xhr) { xhr.setRequestHeader('X-WP-Nonce', plugins_controller.ajax_nonce); initiator.closest('.wsd-toggler').find('.wsd-loading').toggleClass('visible'); },Cuse after i add this code and change all things the code start work , When i make toggle to actve its show me the loading icon but its comeback to be deactive.
I hope you can understand me , and i dont have good background with ajax , thank you again
Forum: Fixing WordPress
In reply to: Bootstrap broken my text alignmentok thank you
Thank you, i waite to solve this problem