This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Array of post types to include the column | |
| function x_favorite_post_types() { | |
| return [ | |
| 'product' /* product post type */ | |
| ]; | |
| } | |
| // Add custom column |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Add custom column to Users list | |
| add_filter( 'manage_users_columns', 'x_add_user_favorites_column' ); | |
| function x_add_user_favorites_column( $columns ) { | |
| $columns['x_favorited_products'] = 'Favorited Products'; | |
| return $columns; | |
| } | |
| // Output column value | |
| add_filter( 'manage_users_custom_column', 'x_show_user_favorites_column_content', 10, 3 ); | |
| function x_show_user_favorites_column_content( $value, $column_name, $user_id ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Event continues BEFORE */ | |
| %root% .x-calendar-event:not(.fc-classic-3J4).fc-classic-USt::before { | |
| content: '<'; | |
| color: var(--fc-event-contrast-color); | |
| } | |
| /* Event continues AFTER */ | |
| %root% .x-calendar-event.fc-classic-3J4:not(.fc-classic-USt)::after { | |
| content: '>'; | |
| color: var(--fc-event-contrast-color); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEventListener('DOMContentLoaded', function() { | |
| if (window.jQuery && window.jQuery.fancybox) { | |
| jQuery(document).on('onInit.fb', function(e, instance) { | |
| if (instance && instance.$refs && instance.$refs.stage) { | |
| instance.$refs.stage.off('mousewheel DOMMouseScroll wheel MozMousePixelScroll'); | |
| instance.$refs.stage.on('mousewheel DOMMouseScroll wheel MozMousePixelScroll', function(e) { | |
| e.preventDefault(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEventListener('DOMContentLoaded', function() { | |
| const links = document.querySelectorAll('.my-link'); | |
| const popoverButtons = document.querySelectorAll('#%%ELEMENT_ID%% .oxy-popover_marker'); | |
| links.forEach((link, index) => { | |
| const correspondingButton = popoverButtons[index]; | |
| if (correspondingButton) { | |
| // Click handler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'wp_footer', function() { | |
| // Option 1: Remove on specific pages | |
| if ( is_page( array( 'your-page-slug', 'another-page' ) ) ) { | |
| wp_dequeue_script( 'glossary-hovercards' ); | |
| wp_deregister_script( 'glossary-hovercards' ); | |
| } |
NewerOlder