/** * Card layout for speaker pages. * * Replaces Sugar Calendar’s own speaker details renderer with a card design: * hero image, role, contact pills, social badges, then the bio. The styles are * printed inline, so there is…Continue reading
/** * Add custom content before or after the speaker details wrapper. * * `sc_speaker_details_before` fires outside and above the * .sc-speaker-details container. Use it for banners, notices, * or breadcrumbs that should sit above the entire speaker block. *…Continue reading
/** * Customize the speaker detail field labels and meta keys. * * Use this to rename labels (e.g. “Title” -> “Role”) or map * fields to different meta keys if you store speaker data differently. * * Hook: sc_speaker_details_data_key_pair…Continue reading
/** * Reorder the speaker detail fields. * * The default order is: title, website, email, phone, social_links. * This snippet changes it to: title, phone, email, website, social_links. * * Hook: sc_speaker_details_data_order (filter) * File: sugar-calendar/src/Pro/Features/Speakers/Frontend/Singular.php:164 * Since: Sugar…Continue reading
/** * Show the speaker featured image above the speaker detail fields. * * Sugar Calendar renders the detail fields on `sc_speaker_details` at priority 10, * so hooking at 5 puts the image first. Requires Sugar Calendar Pro 3.7.0+. */…Continue reading
// 1. Exclude pages from search results function exclude_pages_from_search($query) { if (!is_admin() && $query->is_search && $query->is_main_query()) { $query->set(‘post_type’, ‘post’); } return $query; } add_action(‘pre_get_posts’, ‘exclude_pages_from_search’); // 2. Search only titles and excerpts (exclude post content) function search_title_excerpt_only($search, $wp_query) { global…Continue reading
/** * Bare, theme-friendly list of upcoming events. * * The Events List block bakes in an title and calendar icons and is hard * to restyle. This snippet adds a shortcode that outputs a plain, one-line-per * event list…Continue reading
/** * Allow tag slugs in the sugarcalendar_events_list shortcode. * * Sugar Calendar’s shortcode only accepts term IDs in the `tags` attribute. * This filter intercepts the raw shortcode attributes before the sanitized * (now-empty) value is used, resolves any…Continue reading
add_action( ‘wp_enqueue_scripts’, function() { if ( ! class_exists( ‘FrmRegGlobalSettings’ ) || ! class_exists( ‘FrmProAppController’ ) ) { return; } $global_settings = new FrmRegGlobalSettings(); $reset_page_id = (int) $global_settings->get_global_page( ‘resetpass_page’ ); if ( ! $reset_page_id || ! is_page( $reset_page_id ) ) {…Continue reading
/** * LexiPress: Backend Retailer URL Injector * Creates dedicated input fields in the WooCommerce Product Data panel. */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } // 1. Inject the fields into the “General” tab of the…Continue reading