Enqueue script if not page template

You need to pass it as a function, or you already have but didn’t copy the whole code? If you did not do it, it should look something like this function page_template_not_enqueue() { if ( !is_page_template( ‘page-full-width.php’ ) ) { wp_enqueue_script( ‘flickity-js’, get_template_directory_uri() . ‘/js/flickity.js’, array(), filemtime( get_stylesheet_directory() . ‘/js/flickity.js’ ), true ); } } … Read more

front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL

So here’s the way I would approach this. I’d create a custom page in WP called something like ‘Employee Order Screen’ or ‘Company Name Order Manager’. Something like that. Let the users/employees feel like it’s custom or proprietary. Then you want to create a template in either your theme/child theme or in a custom plugin … Read more

post value to function with Ajax and jQuery

The error is quite self-explanatory. Your last lines are: add_action( ‘wp_ajax_my_action’, ‘my_action_callback’ ); add_filter( ‘wpforms_smart_tag_process’, ‘my_action_callback’, 10, 2 ); The action is calling the same function as the filter. But the filter passes two variables and the action only one. The function itself expects two variables: function my_action_callback($content, $tag) So if you call the function … Read more