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 | |
| /** | |
| * Fluent Forms: Question & Answer Post Sync | |
| * | |
| * Works with the existing Post Creation Feed. | |
| * Replace 123 with your form ID. | |
| */ | |
| if (!defined('ABSPATH')) { | |
| exit; |
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('init', function () { | |
| if ( | |
| !defined('FLUENTCRM') || | |
| !class_exists('\FluentCrm\App\Services\Funnel\BaseAction') || | |
| !class_exists('\FluentCommunity\Modules\Course\Services\CourseHelper') || | |
| !class_exists('\FluentCommunity\Modules\Course\Model\Course') || | |
| !class_exists('\FluentCommunity\App\Models\User') |
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 the user to a FluentCRM tag when a private-space request is submitted. | |
| */ | |
| add_action('fluent_community/space/join_requested', function ($space, $userId, $by) { | |
| if (!defined('FLUENTCRM')) { | |
| return; | |
| } | |
| // Space slug => FluentCRM Tag 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
| <?php | |
| defined('ABSPATH') || exit; | |
| /** | |
| * Modify FluentCommunity signup fields. | |
| */ | |
| add_filter('fluent_community/auth/signup_fields', function ($fields) { | |
| if (isset($fields['full_name'])) { |
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
| /** | |
| * Ninja Tables - Current Month Date Range Filter | |
| * | |
| * Automatically applies the current month date range | |
| * to a Ninja Tables custom date range filter on page load. | |
| * | |
| * Date Format: DD/MM/YYYY | |
| * | |
| * Example: | |
| * From Date: 01/06/2026 |
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
| /* | |
| # Ninja Tables FooTable Pagination at Top | |
| Moves the existing FooTable pagination controls in Ninja Tables / Ninja Tables Pro from the table footer to above the table. | |
| This is intended for Ninja Tables using the default FooTable renderer. | |
| ## Usage | |
| 1. Add `JS` to the table's Custom JS field. |
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 | |
| // Temporary Fluent Forms workaround: | |
| // Preserve plus-addressed emails when passing email through redirect query string. | |
| add_filter('fluentform/submission_confirmation', function ($returnData, $form, $confirmation, $insertId = null, $formData = []) { | |
| $sourceFormId = 29; // Form #1 ID | |
| $emailFieldName = 'email'; // Form #1 email field name | |
| $queryKey = 'email'; // Redirect URL query key: ?email= | |
| if ((int) $form->id !== $sourceFormId || empty($returnData['redirectUrl'])) { |
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 | |
| if (!function_exists('fcom_snippet_pwa_portal_start_url')) { | |
| add_action('init', function () { | |
| $fcomPwa = isset($_GET['fcom_pwa']) ? sanitize_key($_GET['fcom_pwa']) : ''; | |
| if ($fcomPwa === 'manifest') { | |
| fcom_snippet_pwa_serve_manifest(); | |
| } | |
| if ($fcomPwa === 'sw') { |
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_filter('ninja_table_rendering_table_vars', function ($tableVars, $tableId) { | |
| if (empty($tableVars['provider']) || $tableVars['provider'] !== 'raw_sql') { | |
| return $tableVars; | |
| } | |
| if (empty($tableVars['render_type']) || $tableVars['render_type'] !== 'ajax_table') { | |
| return $tableVars; | |
| } |
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 | |
| /** | |
| * FluentCommunity Course Toggle (Collapsible Section) – Shortcode Snippet | |
| * | |
| * This snippet adds a simple collapsible / toggle (accordion-style) section | |
| * to FluentCommunity course lessons using a shortcode. | |
| * | |
| * ---------------------- | |
| * Usage: |
NewerOlder