masterile
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] checkbox not loading products.Thanks a lot, you are the man:)
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] checkbox not loading products.I have found the solution. You were right the ajax.php was being blocked.
I used
”# Allow access to wp-admin/admin-ajax.php
<Files admin-ajax.php>
Order allow,deny
Allow from all
Satisfy any
</Files>””
To solve it. Can you tell me if this is safe to use like this?
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] checkbox not loading products.Hi Oleg,
Thanks for the reply! unfortunately I have to little knowledge to say if I am blocking access. But i think you are right:
”
if ( is_user_logged_in() ) {
/**
* Fires authenticated AJAX actions for logged-in users.
*
* The dynamic portion of the hook name,$_REQUEST['action'],
* refers to the name of the AJAX action callback being fired.
*
* @since 2.1.0
*/
do_action( ‘wp_ajax_’ . $_REQUEST[‘action’] );
} else {
/**
* Fires non-authenticated AJAX actions for logged-out users.
*
* The dynamic portion of the hook name,$_REQUEST['action'],
* refers to the name of the AJAX action callback being fired.
*
* @since 2.8.0
*/
do_action( ‘wp_ajax_nopriv_’ . $_REQUEST[‘action’] );
}
// Default status
die( ‘0’ );”
Is it just a matter of copy pasting the code from the logged-in code onto the logged-out code?
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] checkbox not loading products.