Hide Admins from being tracked
/** * Start Tracking Tags **/ function hook_gtm_header() { if( !current_user_can(‘administrator’) && !current_user_can( ‘author’ ) && !current_user_can( ‘editor’ ) ) { ?>Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
/** * Start Tracking Tags **/ function hook_gtm_header() { if( !current_user_can(‘administrator’) && !current_user_can( ‘author’ ) && !current_user_can( ‘editor’ ) ) { ?>Continue reading
function open_external_URL_in_a_new_tab() { ?>Continue reading
function custom_header_button_script() { ?>Continue reading
/** * Bring the order page to the front of the product page * * @param array $pages The pages. */ function add_test_page_nav( $pages ) { $order_page = array(); if ( isset( $pages[‘order’] ) ) { $order_page = $pages[‘order’]; unset(…Continue reading
apt-get install php81rc-pecl-imagick apt-get installphp81rc-pecl-imagickContinue reading
add_filter(‘aioseo_schema_output’, ‘aioseo_schema_remove_list_item’); // Callback function to remove ‘#listItem’ from URLs in BreadcrumbList function aioseo_schema_remove_list_item($graphs) { // Loop through each element in the array foreach ($graphs as $index => $value) { // Check if the key ‘@type’ is set and its…Continue reading