Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filters to category/tag badges #745

Merged
merged 13 commits into from
Apr 17, 2024
Merged

Conversation

crftwrk
Copy link
Member

@crftwrk crftwrk commented Apr 10, 2024

/**
 * Change category badge class
 */
function change_category_badge_link_class($class) {
  return 'badge bg-warning-subtle border border-warning-subtle text-warning-emphasis rounded-pill text-decoration-none';
}
add_filter('bootscore/class/badge/category', 'change_category_badge_link_class');#
/**
 * Change tags badge class
 */
function change_tag_link_class($class) {
  return 'badge bg-danger-subtle border border-danger-subtle text-danger-emphasis rounded-pill text-decoration-none';
}
add_filter('bootscore/class/badge/tag', 'change_tag_link_class');
/**
 * Hide meta post updated time
 */
function disable_updated_time_display($show_updated_time) {
  return false;
}
add_filter('bootscore/meta/time/updated', 'disable_updated_time_display');
/**
 * Hide meta post author
 */
function hide_author_function($display_author) {
  return false;
}
add_filter('bootscore/meta/author', 'hide_author_function');
/**
 * Change WooCommerce column class
 */
function change_woo_columns($class) {
  return 'col-6 col-lg-4';
}
add_filter('bootscore/class/woocommerce/col', 'change_woo_columns');

@crftwrk crftwrk mentioned this pull request Apr 10, 2024
@crftwrk crftwrk merged commit ca1711f into v6.0.0-beta1 Apr 17, 2024
@crftwrk crftwrk deleted the Add-filters-to-badges branch April 17, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant