Find the method which AJAX GET calls

If the url is something like this admin-ajax.php?example_ajax_request=1&data=1234 The add_action function in the code would be wp_ajax_nopriv_example_ajax_request So, try to grep the whole of your theme directory or plugin directory for the text. Example: grep -r ‘wp_ajax_nopriv_example_ajax_request’ * The second parameter of the add_action is the function name you’re looking for. See https://codex.wordpress.org/AJAX_in_Plugins#Ajax_on_the_Viewer-Facing_Side for example … Read more

Shows warning when enable “wp_gallery_custom_links” plugin with Themify Builder

I have resolved this issue finally by making changes directly in “/wp-content/themes/themify-ultra/themify/themify-builder/templates/template-gallery-grid.php”. Try to find below lines. $link_before=”” != $link ? sprintf( ”, esc_attr( $image->post_title ), esc_url( $link ) ) : ”; $link_before = apply_filters( ‘themify_builder_image_link_before’, $link_before, $image, $settings ); And replace with, $custom_link = get_post_meta( $image->ID, ‘_gallery_link_url’, true ); $custom_link_target = get_post_meta( $image->ID, ‘_gallery_link_target’, … Read more

Issue encountered while trying to keep website private

After reviewing a reset password link, I realised that two variables were being passed via $_GET: key and login. I’ve added the below code to the beginning of my redirect_user() function: if(isset($_GET[‘key’]) && isset($_GET[‘login’])) { return ; } It didn’t fix the issue and i was still being redirected to the login page whenever I … Read more