// Using Vue Router. import Vue from ‘vue’; import Router from ‘vue-router’; Vue.use(Router); const router = new Router ({ // Your vue router settings. }); router.beforeEach((to, from, next) => { if (window.om5678_1234) { window.om5678_1234.reset(); } next(); }); export default router;Continue reading
/** * Ensures the canonical URL ends with a slash. * * This function checks if the provided canonical URL ends with a slash (‘/’). If not, it appends one. * * @param string $canonical The current page’s generated canonical…Continue reading
function wpf_dev_modern_dropdown_search_results( $config, $forms ) { $config[‘shouldSort’] = true; $config[‘shouldSortItems’] = false; $config[‘sortBy’] = ‘label’; // Sort by label to achieve alphabetical sorting return $config; } add_filter( ‘wpforms_field_select_choicesjs_config’, ‘wpf_dev_modern_dropdown_search_results’, 10, 2 );Continue reading
add_action(‘wp_footer’, ‘open_external_links_in_new_tab’); function open_external_links_in_new_tab() { ?>Continue reading