Deryck
Forum Replies Created
-
Thanks @dmurs7.
Works!!!!
Thanks Ben. I’ll wait then.
Hi @ ultimatemembersupport,
I finally solved it. The problem was that the login form was loaded in a modal box and even if it was not always seen, it was loaded. I can’t have the login form and the recovery form on the same page. That causes the error.
Thanks and Regards.
Forum: Developing with WordPress
In reply to: Using PHP Unit and WP-CLI with WordPressHi Arvin,
Thanks for your great help. With svn download, I can make it work. Anyway, I would like to finally understand what’s happening with the install-wp-tests.sh issue.
When you refer to WP_TEST_DIR you are talking about changing the path in line 15 in install-wp-tests.sh?
The wp-tests-config.php needs to be created manually? I ask because there is no such file in the folder after .sh file is launched.
Apologize for my complete ignorance on the subject. I’m trying to learn about this and understand perfectly the logic behind creating a test with the .sh file after scaffolding with wp-cli. Perhaps there is a tutorial about this or something you can recommend to me.
Best Regards.
Thanks @bcworks. In the meantime I tried a few and make it work this way:
add_action( 'rest_api_init', 'dygo_api_init' ); function dygo_api_init() { // If Oauth works, the App associated user is authenticated at this point. if ( ! is_user_logged_in() ) { $response = array( "code" => "user_no_access", "message" => "No access allowed, check Oauth", "status" => 403 ); wp_send_json_error( $response ); die(); } }
I always try to be as much “respectful” as possible with WordPress API so I still have doubts if the process I’m using it is correct.
I will check your suggestion too and let you know.
Regards,
Deryck.You′re welcome. Glad to help. ??
Hi IceTrutle4.
Just set redirection option to “Refresh active page” and should work. The other options does not generate redirect_to hidden input field so the code does not work neither.
Regards.
Hi,
There is no option to go back to previous page in a dynamically way. I had the same problem and use the following solution. Works like a charm.
function dygo_print_referer() { ?> <script> jQuery(document).ready( function($) { $('div.um-login input#redirect_to').attr( 'value', '<?php echo wp_get_referer() ?>' ); }); </script> <?php } add_action( 'wp_head', 'dygo_print_referer' );
Regards,
This code should do the trick.
function dygo_print_referer() { ?> <script> jQuery(document).ready( function($) { $('div.um-login input#redirect_to').attr( 'value', '<?php echo wp_get_referer() ?>' ); }); </script> <?php } add_action( 'wp_head', 'dygo_print_referer' );
Better solution. On functions.php paste code:
remove_filter('the_content', 'yasr_add_schema');
That works, even on plugin update.
Fixed with css! I hide the non selected shipping method.
OK, now I have the two shipping method active. A fixed fee one (for below $50) and the free shipping if I have more than $50 in total cart price. The issue is that always show the two methods. Can I show the specific method depending of the cart amount and hide the other dynamically?
Thanks
Forum: Plugins
In reply to: [WooCommerce] Variation products disableWow! Incredible, the difference it’s just the priority argument in add_filter.
Thanks Mike!
Forum: Plugins
In reply to: [NS Cloner - Site Copier] Page not found after cloningThanks a lot I will send the contact right now.
Forum: Plugins
In reply to: [NS Cloner - Site Copier] Page not found after cloningI’m getting crazy with this. Almost everything clones fine except two things:
- The ID blog.dir folder does not create (I fixed duplicating and renaming with the new site ID manually)
- NextGen Gallery directory setting does not get auto populated. Remains with value “/” when the normal behaviour is they assign “wp-content/blogs.dir/%BLOG_ID%/files/”
I attach and example: https://dl.dropbox.com/u/814218/nextgen.png