PATH:
home
/
lab2454c
/
carbonbullionexchange.com
/
wp-content
/
plugins
/
elementor
/
app
/
assets
/
js
/
hooks
export default function useQueryParams() { const urlSearchParams = new URLSearchParams( window.location.search ), urlParams = Object.fromEntries( urlSearchParams.entries() ), hashValue = location.hash.match( /\?(.+)/ )?.[ 1 ], hashParams = {}; if ( hashValue ) { hashValue.split( '&' ).forEach( ( pair ) => { const [ key, value ] = pair.split( '=' ); hashParams[ key ] = value; } ); } // Merging the URL params with the hash params. const queryParams = { ...urlParams, ...hashParams, }; return { getAll: () => queryParams, }; }
[+]
..
[-] use-query-params.js
[edit]
[-] use-ajax.js
[edit]
[-] use-action.js
[edit]
[-] use-page-title.js
[edit]