Category: Admin
om-vue.js
// 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
/** * 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
Dropdown field — Sort modern dropdown choices alphabetically
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
Open External Link in New Tab in WordPress
add_action(‘wp_footer’, ‘open_external_links_in_new_tab’); function open_external_links_in_new_tab() { ?>Continue reading
Special Monsterlink
Monsterlink Mobile Variant
Subscribe Now!Continue reading
Dynamic Monsterlinks by Id
// Target by ID window.onload = function(){ document.getElementById(“someID”).href=”MONSTERLINK_URL”; }Continue reading
Dynamic Monsterlinks By Class Name
// Target by class name window.onload = function(){ const dynamicMonsterLinks = document.querySelectorAll(“a.myClass”); dynamicMonsterLinks.forEach(dynamicMonsterLinks => dynamicMonsterLinks.href = “MONSTERLINK_URL”); }Continue reading
Device based Monsterlink
Subscribe Now!Continue reading