/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
/** * 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
/** * 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