Posts by WPCanyon

65 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Has collected 1+ items on Envato Market
  • Located in Serbia
WPCanyon
says

65 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Has collected 1+ items on Envato Market
  • Located in Serbia
WPCanyon
says

Same goes for exclusive and non exclusive.

65 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Has collected 1+ items on Envato Market
  • Located in Serbia
WPCanyon
says

You’re welcome :)

65 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Has collected 1+ items on Envato Market
  • Located in Serbia
WPCanyon
says

Unless you’re doing a regular AJAX call for a whole page, not a WordPress AJAX call, in which case DOING_AJAX is not defined.

You can add a GET variable in your AJAX call to the page like http://website.com/?ft_ajax_call=true

And in the function:

function thb_register_js() {
    if ( ! isset( $_GET['ft_ajax_call'] ) ) {
        wp_register_script('app', THB_THEME_ROOT . '/assets/js/app.min.js', 'jquery', null, TRUE);
        wp_enqueue_script('app');
    }
}
65 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Has collected 1+ items on Envato Market
  • Located in Serbia
WPCanyon
says

is_ajax() is not a WordPress function.

It’s a function in WooCommerce, and all it does is simply return whether DOING_AJAX constant is defined or not.

The way you can check if it’s AJAX is:

if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
    // it is AJAX
}

But in this specific scenario it won’t work, because “wp_enqueue_scripts” does not fire on AJAX calls, only on regular page loads.

65 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Has collected 1+ items on Envato Market
  • Located in Serbia
WPCanyon
says

In about 5-6 days after submission you’ll know if it’s approved or rejected.

65 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Has collected 1+ items on Envato Market
  • Located in Serbia
WPCanyon
says

Check the Statement.

65 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Has collected 1+ items on Envato Market
  • Located in Serbia
WPCanyon
says

Why are you calling it with the priority of 999? A wild guess is that the issue is there, get rid of that and let it use the default priority ( 10 ).

65 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Has collected 1+ items on Envato Market
  • Located in Serbia
WPCanyon
says

Hi,

I’m interested.

My name is Slobodan, I work with Dany Duchaine, Live Composer plugin and 6 of the themes on there are developed by me.

You can send over a message from the contact form on my profile page.

65 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Has collected 1+ items on Envato Market
  • Located in Serbia
WPCanyon
says

Ahh sorry about that. I gave the new threads a quick check to see if it’s being discussed but missed it somehow.

by
by
by
by
by
by