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 | |
| function example_callback() { | |
| return 'some value'; | |
| } | |
| add_filter( 'fsri_shortcode_after_title', 'example_callback' ); | 
  
    
      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 | |
| /** | |
| * Helper function to get ID of feast category image | |
| * | |
| * @since 7.7.0 | |
| * | |
| * @param string $taxonomy Name of the taxonomy | |
| */ | |
| function get_feast_category_image_id( $term ) { | 
  
    
      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
    
  
  
    
  | { | |
| "AAInfo" : "This is a CodeKit 3 project config file. EDITING THIS FILE IS A POOR LIFE DECISION. Doing so may cause CodeKit to crash and\/or corrupt your project. Several critical values in this file are 64-bit integers, which JavaScript JSON parsers do not support because JavaScript cannot handle 64-bit integers. These values will be corrupted if the file is parsed with JavaScript. This file is not backwards-compatible with CodeKit 1 or 2. For details, see https:\/\/codekitapp.com\/", | |
| "buildSteps" : [ | |
| { | |
| "name" : "Process All Remaining Files and Folders", | |
| "stepType" : 1, | |
| "uuidString" : "8DB4564B-D63F-45C5-A152-F67DC528DC35" | |
| } | |
| ], | |
| "creatorBuild" : "34434", | 
  
    
      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 | |
| /** | |
| * Blocks setup | |
| * | |
| * @link https://www.advancedcustomfields.com/resources/options-page/ | |
| */ | |
| namespace WhiteleyDesigns\Blocks; | |
| /** | 
  
    
      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 | |
| /** | |
| * Blocks setup | |
| * | |
| * @link https://www.advancedcustomfields.com/resources/options-page/ | |
| */ | |
| namespace WhiteleyDesigns\Blocks; | |
| /** | 
  
    
      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
    
  
  
    
  | (function($){ | |
| // front end render on first instance of block only | |
| $(document).ready(function(){ | |
| $('.block-faq').each(function(){ | |
| faqBlockInit(); | |
| return false; | |
| }); | |
| }); | 
  
    
      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
    
  
  
    
  | (function($){ | |
| var initializeBlock = function( $block ) { | |
| $('.block-faq__toggle-question').click(function() { | |
| $(this).children('.block-faq__toggle-question-icons').attr('aria-selected', function (i, attr) { | |
| return attr == 'true' ? 'false' : 'true' | |
| }); | |
| $(this).children('.block-faq__toggle-question-icons').attr('aria-expanded', function (i, attr) { | |
| return attr == 'true' ? 'false' : 'true' | 
  
    
      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 | |
| wp_reset_query(); | |
| $event_ids = []; | |
| // get events hosted by current user | |
| $args_host = [ | |
| 'author' => get_current_user_id(), | |
| 'post_type' => 'events', | |
| 'post_status' => 'publish', | |
| 'posts_per_page' => -1, | 
  
    
      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 | |
| /** | |
| * Ensure FacetWP indexes when events are created/edited forms domain | |
| */ | |
| add_action( 'af/form/submission', function ( $form, $fields, $args ) { | |
| if ( isset( AF()->submission['post'] ) ) { | |
| $post_id = AF()->submission['post']; | |
| FWP()->indexer->index( $post_id ); | |
| // tried to reindex all, same result |