soroka95
Forum Replies Created
-
Thanks!
Let me clarify the question, how to change the DEFAULT order? Is it possible to make “new to old” by default without clicking on the arrow each time.
I made a solution for my case, it doesn’t enable/disable, but it changes popup status – publish/draft (Don’t forget to enable the popup once, otherwise you will not see your popup).
So if import with id 1 starts, popup 86629 is showing. If import is completed, popup changes its status to Draft.
/** * Before WPAI import function */ function before_xml_import( $import_id ) { // Check import ID if ( (string) 1 === $import_id ) { if( function_exists( 'pum_get_popup' ) ) { // Check popup ID $popup = pum_get_popup( 86629 ); if( $popup ) { // Change popup status to Publish $popup->post_status = 'publish'; wp_update_post( $popup ); } } } } add_action( 'pmxi_before_xml_import', 'before_xml_import', 1, 1 ); /** * On Complete WPAI import function */ function after_xml_import_function( $import_id ) { // Check import ID if ( (string) 1 === $import_id ) { if( function_exists( 'pum_get_popup' ) ) { // Check popup ID $popup = pum_get_popup( 86629 ); if( $popup ) { // Change popup status to Draft $popup->post_status = 'draft'; wp_update_post( $popup ); } } } } add_action( 'pmxi_after_xml_import', 'after_xml_import_function', 1, 1 );
Forum: Plugins
In reply to: [WooCommerce] wc_update_product_lookup_tables_rating_count_batchThanks for your reply.
Is there any hook or another option to change limits with code in functions.php of my theme?Thanks for your reply, but I didn’t see there any functions to enable/disable popup. So, I need to enable/disable popup with code, not just open or close. https://prnt.sc/XaA6fx9y01XY
The code will be used in functions.php of my theme. I want to enable popup when import is going and disable popup when import is done./** * Before WPAI import function */ function before_xml_import( $import_id ) { // here I want to Enable popup popmake-86629 } add_action( 'pmxi_before_xml_import', 'before_xml_import', 1, 1 ); /** * On Complete WPAI import function */ function after_xml_import_function( $import_id ) { // here I want to Disable popup popmake-86629 } add_action( 'pmxi_after_xml_import', 'after_xml_import_function', 1, 1 );
The minimum value that you can set for a user’s wallet is 0.
I understand, but what if we need to charge more than user’s balance?
It will be great if you add this feature in the future. Add the checkbox to the settings, so admin can decide allow/dissallow negative balance.
thxthere are no plugins, clean wp build
Is it possible to enable your maintenance mode with a function?
THANK YOU! Works as expected!
It would be great!
I think it happens with weekly Automatic Secret Keys Updater (Sucuri Security option)
I have shared all info via form