Exception
Error in formating DateTime object. Expected DateTime, but instead given boolean Exception thrown with message "Error in formating DateTime object. Expected DateTime, but instead given boolean" Stacktrace: #34 Exception in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php:31 #33 eo_format_datetime in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php:164 #32 eo_format_event_occurrence in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/templates/event-meta-event-single.php:53 #31 require in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template.php:785 #30 load_template in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-templates.php:96 #29 eo_locate_template in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-templates.php:41 #28 eo_get_template_part in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-templates.php:311 #27 _eventorganiser_single_event_content in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php:308 #26 WP_Hook:apply_filters in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/plugin.php:205 #25 apply_filters in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/formatting.php:3887 #24 wp_trim_excerpt in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php:308 #23 WP_Hook:apply_filters in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/plugin.php:205 #22 apply_filters in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/post-template.php:431 #21 get_the_excerpt in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/helpers/post-helper.php:84 #20 Yoast\WP\SEO\Helpers\Post_Helper:get_the_excerpt in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-post-type-presentation.php:196 #19 Yoast\WP\SEO\Presentations\Indexable_Post_Type_Presentation:generate_open_graph_description in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/presentations/abstract-presentation.php:66 #18 Yoast\WP\SEO\Presentations\Abstract_Presentation:__get in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/presenters/open-graph/description-presenter.php:33 #17 Yoast\WP\SEO\Presenters\Open_Graph\Description_Presenter:get in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/presenters/abstract-indexable-tag-presenter.php:37 #16 Yoast\WP\SEO\Presenters\Abstract_Indexable_Tag_Presenter:present in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php:326 #15 Yoast\WP\SEO\Integrations\Front_End_Integration:present_head in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php:308 #14 WP_Hook:apply_filters in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php:332 #13 WP_Hook:do_action in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/plugin.php:517 #12 do_action in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php:300 #11 Yoast\WP\SEO\Integrations\Front_End_Integration:call_wpseo_head in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php:308 #10 WP_Hook:apply_filters in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php:332 #9 WP_Hook:do_action in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/plugin.php:517 #8 do_action in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/general-template.php:3043 #7 wp_head in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/themes/flatsome/header.php:10 #6 require_once in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template.php:783 #5 load_template in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template.php:718 #4 locate_template in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/general-template.php:48 #3 get_header in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/themes/continuum18/controllers/single-events.php:4 #2 include in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template-loader.php:106 #1 require_once in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-blog-header.php:19 #0 require in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/index.php:17
Stack frames (35)
34
Exception
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php31
33
eo_format_datetime
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php164
32
eo_format_event_occurrence
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/templates/event-meta-event-single.php53
31
require
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template.php785
30
load_template
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-templates.php96
29
eo_locate_template
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-templates.php41
28
eo_get_template_part
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-templates.php311
27
_eventorganiser_single_event_content
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php308
26
WP_Hook apply_filters
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/plugin.php205
25
apply_filters
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/formatting.php3887
24
wp_trim_excerpt
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php308
23
WP_Hook apply_filters
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/plugin.php205
22
apply_filters
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/post-template.php431
21
get_the_excerpt
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/helpers/post-helper.php84
20
Yoast\WP\SEO\Helpers\Post_Helper get_the_excerpt
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-post-type-presentation.php196
19
Yoast\WP\SEO\Presentations\Indexable_Post_Type_Presentation generate_open_graph_description
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/presentations/abstract-presentation.php66
18
Yoast\WP\SEO\Presentations\Abstract_Presentation __get
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/presenters/open-graph/description-presenter.php33
17
Yoast\WP\SEO\Presenters\Open_Graph\Description_Presenter get
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/presenters/abstract-indexable-tag-presenter.php37
16
Yoast\WP\SEO\Presenters\Abstract_Indexable_Tag_Presenter present
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php326
15
Yoast\WP\SEO\Integrations\Front_End_Integration present_head
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php308
14
WP_Hook apply_filters
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php332
13
WP_Hook do_action
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/plugin.php517
12
do_action
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php300
11
Yoast\WP\SEO\Integrations\Front_End_Integration call_wpseo_head
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php308
10
WP_Hook apply_filters
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php332
9
WP_Hook do_action
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/plugin.php517
8
do_action
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/general-template.php3043
7
wp_head
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/themes/flatsome/header.php10
6
require_once
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template.php783
5
load_template
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template.php718
4
locate_template
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/general-template.php48
3
get_header
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/themes/continuum18/controllers/single-events.php4
2
include
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template-loader.php106
1
require_once
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-blog-header.php19
0
require
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/index.php17
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php
 * * {@see `eo_get_the_start()`}
 * * {@see `eo_get_the_end()`}
 * * {@see `eo_get_schedule_start()`}
 * * {@see `eo_get_schedule_last()`}
 *
 * The constant DATETIMEOBJ can be passed to them to get datetime objects
 * Applies {@see `eventorganiser_format_datetime`} filter
 *
 * @since 1.2.0
 * @link https://php.net/manual/en/function.date.php PHP Date
 *
 * @param dateTime $datetime The datetime to format
 * @param string|constant $format How to format the date, see https://php.net/manual/en/function.date.php  or DATETIMEOBJ constant to return the datetime object.
 * @return string|dateTime The formatted date
*/
function eo_format_datetime( $datetime, $format = 'd-m-Y' ) {
    global  $wp_locale;
 
    if ( ! ( $datetime instanceof DateTime ) ) {
        throw new Exception( sprintf(
            'Error in formating DateTime object. Expected DateTime, but instead given %s',
            gettype( $datetime )
        ) );
    }
 
    if ( DATETIMEOBJ == $format ) {
        return $datetime;
    }
 
    if ( ( !empty( $wp_locale->month ) ) && ( !empty( $wp_locale->weekday ) ) ) :
            //Translate
            $datemonth            = $wp_locale->get_month( $datetime->format( 'm' ) );
            $datemonth_abbrev     = $wp_locale->get_month_abbrev( $datemonth );
            $dateweekday          = $wp_locale->get_weekday( $datetime->format( 'w' ) );
            $dateweekday_abbrev   = $wp_locale->get_weekday_abbrev( $dateweekday );
            $datemeridiem         = trim($wp_locale->get_meridiem( $datetime->format( 'a' ) ) );
            $datemeridiem_capital = trim( $wp_locale->get_meridiem( $datetime->format( 'A' ) ) );
 
            $datemeridiem         = ( empty( $datemeridiem ) ? $datetime->format( 'a' )  : $datemeridiem );
            $datemeridiem_capital = ( empty( $datemeridiem_capital ) ? $datetime->format( 'A' )  : $datemeridiem_capital );
Arguments
  1. "Error in formating DateTime object. Expected DateTime, but instead given boolean"
    
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php
 * @param string $date_format How to format the date part of the occurrence's datetime.
 * @param string $time_format How to format the time part of the occurrence's datetime.
 * @param string $seperator A string used to seperate differing parts of the formatted start/end datetimes.
 * @param bool $microdata Whether to wrap the formatted start/end datetimes in microdata
 * @return string|dateTime The formatted occurrence start/end date range
 */
function eo_format_event_occurrence( $event_id = false, $occurrence_id = false, $date_format = false, $time_format = false, $seperator = ' – ', $microdata = true ){
 
    global $post;
 
    $event_id      = $event_id ? intval( $event_id ) : get_the_ID();
    $occurrence_id = $occurrence_id ? intval( $occurrence_id ) : intval( $post->occurrence_id );
 
    $format        = eo_get_event_datetime_format( $event_id, $date_format, $time_format );
    $microformat   = eo_is_all_day( $event_id ) ? 'Y-m-d' : 'c';
 
    $start = eo_get_the_start( DATETIMEOBJ, $event_id, null, $occurrence_id );
    $end   = eo_get_the_end( DATETIMEOBJ, $event_id, null, $occurrence_id );
 
    $start_formatted = eo_format_datetime( $start, $format );
    $end_formatted   = eo_format_datetime( $end, $format );
 
    if( $start_formatted == $end_formatted ){
        $end_formatted = false;
 
    }else{
        $fragment = _eo_format_datetime_range( $start, $end, $format, is_rtl() );
        $start_formatted = is_rtl() ? $fragment['right'] : $fragment['left'];
        $end_formatted   = is_rtl() ? $fragment['left'] : $fragment['right'];
    }
 
    if( $microdata ){
        $start_formatted = sprintf(
            '<time itemprop="startDate" datetime="%s">%s</time>',
            $start->format( $microformat ),
            $start_formatted
        );
 
        if( $end_formatted ){
            $end_formatted = sprintf(
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/templates/event-meta-event-single.php
    <!-- Is event recurring or a single event -->
    <?php if ( eo_recurs() ) :?>
        <!-- Event recurs - is there a next occurrence? -->
        <?php $next = eo_get_next_occurrence( eo_get_event_datetime_format() );?>
 
        <?php if ( $next ) : ?>
            <!-- If the event is occurring again in the future, display the date -->
            <?php printf( '<p>' . __( 'This event is running from %1$s until %2$s. It is next occurring on %3$s', 'eventorganiser' ) . '</p>', eo_get_schedule_start( 'j F Y' ), eo_get_schedule_last( 'j F Y' ), $next );?>
 
        <?php else : ?>
            <!-- Otherwise the event has finished (no more occurrences) -->
            <?php printf( '<p>' . __( 'This event finished on %s', 'eventorganiser' ) . '</p>', eo_get_schedule_last( 'd F Y', '' ) );?>
        <?php endif; ?>
    <?php endif; ?>
 
    <ul class="eo-event-meta">
 
        <?php if ( ! eo_recurs() ) { ?>
            <!-- Single event -->
            <li><strong><?php esc_html_e( 'Date', 'eventorganiser' );?>:</strong> <?php echo eo_format_event_occurrence();?></li>
        <?php } ?>
 
        <?php if ( eo_get_venue() ) {
            $tax = get_taxonomy( 'event-venue' ); ?>
            <li><strong><?php echo esc_html( $tax->labels->singular_name ) ?>:</strong> <a href="<?php eo_venue_link(); ?>"> <?php eo_venue_name(); ?></a></li>
        <?php } ?>
 
        <?php if ( get_the_terms( get_the_ID(), 'event-category' ) && ! is_wp_error( get_the_terms( get_the_ID(), 'event-category' ) ) ) { ?>
            <li><strong><?php esc_html_e( 'Categories', 'eventorganiser' ); ?>:</strong> <?php echo get_the_term_list( get_the_ID(),'event-category', '', ', ', '' ); ?></li>
        <?php } ?>
 
        <?php if ( get_the_terms( get_the_ID(), 'event-tag' ) && ! is_wp_error( get_the_terms( get_the_ID(), 'event-tag' ) ) ) { ?>
            <li><strong><?php esc_html_e( 'Tags', 'eventorganiser' ); ?>:</strong> <?php echo get_the_term_list( get_the_ID(), 'event-tag', '', ', ', '' ); ?></li>
        <?php } ?>
 
        <?php if ( eo_recurs() ) {
                //Event recurs - display dates.
                $upcoming = new WP_Query(array(
                    'post_type'         => 'event',
                    'event_start_after' => 'today',
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template.php
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    /**
     * Fires before a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $require_once   Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_before_load_template', $_template_file, $require_once, $args );
 
    if ( $require_once ) {
        require_once $_template_file;
    } else {
        require $_template_file;
    }
 
    /**
     * Fires after a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $require_once   Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_after_load_template', $_template_file, $require_once, $args );
}
 
Arguments
  1. "/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/templates/event-meta-event-single.php"
    
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-templates.php
     *
     * @param array $stack Array of directories (absolute path).
     */
    $stack = apply_filters( 'eventorganiser_template_stack', $stack );
    $stack = array_unique( $stack );
 
    foreach ( (array) $template_names as $template_name ) {
        if ( ! $template_name ) {
            continue;
        }
        foreach ( $stack as $template_stack ) {
            if ( file_exists( trailingslashit( $template_stack ) . $template_name ) ) {
                $located = trailingslashit( $template_stack ) . $template_name;
                break 2;
            }
        }
    }
 
    if ( $load && '' != $located ) {
        load_template( $located, $require_once );
    }
 
    return $located;
}
 
/**
 * A wrapper for {@see wp_enqueue_style()}. Filters the stylesheet url so themes can
 * replace a stylesheet with their own.
 *
 * @uses wp_register_style()
 * @since 3.0.0
 *
 * @param string      $handle Name of the stylesheet.
 * @param string|bool $src    Path to the stylesheet from the WordPress root directory. Example: '/css/mystyle.css'.
 * @param array       $deps   An array of registered style handles this stylesheet depends on. Default empty array.
 * @param string|bool $ver    String specifying the stylesheet version number. Used to ensure that the correct version
 *                            is sent to the client regardless of caching. Default 'false'. Accepts 'false', 'null', or 'string'.
 * @param string      $media  Optional. The media for which this stylesheet has been defined.
 *                            Default 'all'. Accepts 'all', 'aural', 'braille', 'handheld', 'projection', 'print',
 *                            'screen', 'tty', or 'tv'.
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-templates.php
 * @uses do_action() Calls `get_template_part_{$slug}` action.
 *
 * @param string $slug The slug name for the generic template.
 * @param string $name The name of the specialised template.
 */
function eo_get_template_part( $slug, $name = null ) {
 
    /**
     * @ignore
     */
    do_action( "get_template_part_{$slug}", $slug, $name );
 
    $templates = array();
    if ( isset( $name ) ) {
        $templates[] = "{$slug}-{$name}.php";
    }
 
    $templates[] = "{$slug}.php";
 
    eo_locate_template( $templates, true, false );
}
 
 
/**
 * Retrieve the name of the highest priority template file that exists.
 *
 * Searches the child theme first, then the parent theme before checking the plug-in templates folder.
 * So parent themes can override the default plug-in templates, and child themes can over-ride both.
 *
 * Behaves almost identically to `{@see locate_template()}`
 *
 * @since 1.7
 *
 * @param string|array $template_names Template file(s) to search for, in order.
 * @param bool $load If true the template file will be loaded if it is found.
 * @param bool $require_once Whether to require_once or require. Default true. Has no effect if $load is false.
 * @return string The template filename if one is located.
 */
function eo_locate_template( $template_names, $load = false, $require_once = true ) {
    $located = '';
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/event-organiser/includes/event-organiser-templates.php
 
    //Check we are an event!
    if ( get_post_type( get_the_ID() ) !== 'event' ) {
        return $content;
    }
 
    /*
     * This was introduced to fix an obscure bug with including pages
     * in another page via shortcodes.
     * But it breaks yoast SEO.
    global $eo_event_parsed;
    if( !empty( $eo_event_parsed[get_the_ID()] ) ){
        return $content;
    }else{
        $eo_event_parsed[get_the_ID()] = 1;
    }*/
 
    //Object buffering
    ob_start();
    eo_get_template_part( 'event-meta','event-single' );
    //include(EVENT_ORGANISER_DIR.'templates/event-meta-event-single.php');
    $event_details = ob_get_contents();
    ob_end_clean();
 
    /**
     * Filters the event details automatically appended to the event's content
     * when single-event.php is not present in the theme.
     *
     * If template handling is enabled and the theme does not have `single-event.php`
     * template, Event Organiser uses `the_content` filter to add prepend the content
     * with event details. This filter allows you to change the prepended details.
     *
     * Unless you have a good reason, it's strongly recommended to change the templates
     * rather than use this filter.
     *
     * @param string $event_details The event details to be added.
     * @param string $content       The original event content
     */
    $event_details = apply_filters( 'eventorganiser_pre_event_content', $event_details, $content );
 
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args                           = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
            $priority                                 = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 == $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/plugin.php
        $all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
        _wp_call_all_hook( $all_args );
    }
 
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    // Pass the value to WP_Hook.
    array_unshift( $args, $value );
 
    $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 *                      functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_filters        Stores the number of times each filter was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the filter hook.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/formatting.php
 *
 * @since 1.5.0
 * @since 5.2.0 Added the `$post` parameter.
 *
 * @param string             $text Optional. The excerpt. If set to empty, an excerpt is generated.
 * @param WP_Post|object|int $post Optional. WP_Post instance or Post ID/object. Default null.
 * @return string The excerpt.
 */
function wp_trim_excerpt( $text = '', $post = null ) {
    $raw_excerpt = $text;
 
    if ( '' === trim( $text ) ) {
        $post = get_post( $post );
        $text = get_the_content( '', false, $post );
 
        $text = strip_shortcodes( $text );
        $text = excerpt_remove_blocks( $text );
 
        /** This filter is documented in wp-includes/post-template.php */
        $text = apply_filters( 'the_content', $text );
        $text = str_replace( ']]>', ']]&gt;', $text );
 
        /* translators: Maximum number of words used in a post excerpt. */
        $excerpt_length = (int) _x( '55', 'excerpt_length' );
 
        /**
         * Filters the maximum number of words in a post excerpt.
         *
         * @since 2.7.0
         *
         * @param int $number The maximum number of words. Default 55.
         */
        $excerpt_length = (int) apply_filters( 'excerpt_length', $excerpt_length );
 
        /**
         * Filters the string in the "more" link displayed after a trimmed excerpt.
         *
         * @since 2.9.0
         *
         * @param string $more_string The string shown within the more link.
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args                           = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
            $priority                                 = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 == $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/plugin.php
        $all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
        _wp_call_all_hook( $all_args );
    }
 
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    // Pass the value to WP_Hook.
    array_unshift( $args, $value );
 
    $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 *                      functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_filters        Stores the number of times each filter was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the filter hook.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/post-template.php
 
    $post = get_post( $post );
    if ( empty( $post ) ) {
        return '';
    }
 
    if ( post_password_required( $post ) ) {
        return __( 'There is no excerpt because this is a protected post.' );
    }
 
    /**
     * Filters the retrieved post excerpt.
     *
     * @since 1.2.0
     * @since 4.5.0 Introduced the `$post` parameter.
     *
     * @param string  $post_excerpt The post excerpt.
     * @param WP_Post $post         Post object.
     */
    return apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
}
 
/**
 * Determines whether the post has a custom excerpt.
 *
 * For more information on this and similar theme functions, check out
 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
 * Conditional Tags} article in the Theme Developer Handbook.
 *
 * @since 2.3.0
 *
 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
 * @return bool True if the post has a custom excerpt, false otherwise.
 */
function has_excerpt( $post = 0 ) {
    $post = get_post( $post );
    return ( ! empty( $post->post_excerpt ) );
}
 
/**
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/helpers/post-helper.php
     *
     * @param string $content Content to remove all the shortcode tags from.
     *
     * @return string Content without shortcode tags.
     */
    public function strip_shortcodes( $content ) {
        return \strip_shortcodes( $content );
    }
 
    /**
     * Retrieves the post excerpt (without tags).
     *
     * @codeCoverageIgnore It only wraps another helper method.
     *
     * @param int $post_id Post ID.
     *
     * @return string Post excerpt (without tags).
     */
    public function get_the_excerpt( $post_id ) {
        return $this->string->strip_all_tags( \get_the_excerpt( $post_id ) );
    }
 
    /**
     * Retrieves the post type of the current post.
     *
     * @codeCoverageIgnore It only wraps a WordPress function.
     *
     * @param WP_Post|null $post The post.
     *
     * @return string|false Post type on success, false on failure.
     */
    public function get_post_type( $post = null ) {
        return \get_post_type( $post );
    }
 
    /**
     * Retrieves the post title with fallback to `No title`.
     *
     * @param int $post_id Optional. Post ID.
     *
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-post-type-presentation.php
     * Generates the open graph description.
     *
     * @return string The open graph description.
     */
    public function generate_open_graph_description() {
        if ( $this->model->open_graph_description ) {
            $open_graph_description = $this->model->open_graph_description;
        }
 
        if ( empty( $open_graph_description ) ) {
            // The helper applies a filter, but we don't have a default value at this stage so we pass an empty string.
            $open_graph_description = $this->values_helper->get_open_graph_description( '', $this->model->object_type, $this->model->object_sub_type );
        }
 
        if ( empty( $open_graph_description ) ) {
            $open_graph_description = $this->meta_description;
        }
 
        if ( empty( $open_graph_description ) ) {
            $open_graph_description = $this->post->get_the_excerpt( $this->model->object_id );
            $open_graph_description = $this->post->strip_shortcodes( $open_graph_description );
        }
 
        return $open_graph_description;
    }
 
    /**
     * Generates the open graph images.
     *
     * @return array The open graph images.
     */
    public function generate_open_graph_images() {
        if ( \post_password_required() ) {
            return [];
        }
 
        return parent::generate_open_graph_images();
    }
 
    /**
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/presentations/abstract-presentation.php
        $presentation->is_prototype = false;
        return $presentation;
    }
 
    /**
     * Magic getter for lazy loading of generate functions.
     *
     * @param string $name The property to get.
     *
     * @return mixed The value if it could be generated.
     *
     * @throws Exception If there is no generator for the property.
     */
    public function __get( $name ) {
        if ( $this->is_prototype() ) {
            throw new Exception( 'Attempting property access on prototype presentation. Use Presentation::of( $data ) to get a model presentation.' );
        }
        $generator = "generate_$name";
        if ( \method_exists( $this, $generator ) ) {
            $this->{$name} = $this->$generator();
            return $this->{$name};
        }
        throw new Exception( "Property $name has no generator. Expected function $generator." );
    }
 
    /**
     * Magic isset for ensuring methods that have a generator are recognised.
     *
     * @codeCoverageIgnore Wrapper method.
     *
     * @param string $name The property to get.
     *
     * @return bool Whether or not there is a generator for the requested property.
     */
    public function __isset( $name ) {
        return \method_exists( $this, "generate_$name" );
    }
 
    /**
     * Returns `true` if this class is a prototype.
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/presenters/open-graph/description-presenter.php
     * The tag key name.
     *
     * @var string
     */
    protected $key = 'og:description';
 
    /**
     * The tag format including placeholders.
     *
     * @var string
     */
    protected $tag_format = self::META_PROPERTY_CONTENT;
 
    /**
     * Run the Open Graph description through replace vars and the `wpseo_opengraph_desc` filter and sanitization.
     *
     * @return string The filtered description.
     */
    public function get() {
        $meta_og_description = $this->replace_vars( $this->presentation->open_graph_description );
 
        /**
         * Filter: 'wpseo_opengraph_desc' - Allow changing the Yoast SEO generated Open Graph description.
         *
         * @api string The description.
         *
         * @param Indexable_Presentation $presentation The presentation of an indexable.
         */
        $meta_og_description = \apply_filters( 'wpseo_opengraph_desc', $meta_og_description, $this->presentation );
        $meta_og_description = $this->helpers->string->strip_all_tags( \stripslashes( $meta_og_description ) );
        return \trim( $meta_og_description );
    }
}
 
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/presenters/abstract-indexable-tag-presenter.php
     * The tag format including placeholders.
     *
     * @var string
     */
    protected $tag_format = self::DEFAULT_TAG_FORMAT;
 
    /**
     * The method of escaping to use.
     *
     * @var string
     */
    protected $escaping = 'attribute';
 
    /**
     * Returns a tag in the head.
     *
     * @return string The tag.
     */
    public function present() {
        $value = $this->get();
 
        if ( ! \is_string( $value ) || $value === '' ) {
            return '';
        }
 
        /**
         * There may be some classes that are derived from this class that do not use the $key property
         * in their $tag_format string. In that case the key property will simply not be used.
         */
        return \sprintf(
            $this->tag_format,
            $this->escape_value( $value ),
            $this->key,
            \is_admin_bar_showing() ? ' class="yoast-seo-meta-tag"' : ''
        );
    }
 
    /**
     * Escaped the output.
     *
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php
     * Echoes all applicable presenters for a page.
     */
    public function present_head() {
        $context    = $this->context_memoizer->for_current_page();
        $presenters = $this->get_presenters( $context->page_type, $context );
 
        /**
         * Filter 'wpseo_frontend_presentation' - Allow filtering the presentation used to output our meta values.
         *
         * @api Indexable_Presention The indexable presentation.
         */
        $presentation = \apply_filters( 'wpseo_frontend_presentation', $context->presentation, $context );
 
        echo \PHP_EOL;
        foreach ( $presenters as $presenter ) {
            $presenter->presentation = $presentation;
            $presenter->helpers      = $this->helpers;
            $presenter->replace_vars = $this->replace_vars;
 
            $output = $presenter->present();
            if ( ! empty( $output ) ) {
                // phpcs:ignore WordPress.Security.EscapeOutput -- Presenters are responsible for correctly escaping their output.
                echo "\t" . $output . \PHP_EOL;
            }
        }
        echo \PHP_EOL . \PHP_EOL;
    }
 
    /**
     * Returns all presenters for this page.
     *
     * @param string                 $page_type The page type.
     * @param Meta_Tags_Context|null $context   The meta tags context for the current page.
     *
     * @return Abstract_Indexable_Presenter[] The presenters.
     */
    public function get_presenters( $page_type, $context = null ) {
        if ( \is_null( $context ) ) {
            $context = $this->context_memoizer->for_current_page();
        }
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args                           = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
            $priority                                 = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 == $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level                      = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/plugin.php
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    if ( empty( $arg ) ) {
        $arg[] = '';
    } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
        // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
        $arg[0] = $arg[0][0];
    }
 
    $wp_filter[ $hook_name ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Calls the callback functions that have been added to an action hook, specifying arguments in an array.
 *
 * @since 2.1.0
 *
 * @see do_action() This function is identical, but the arguments passed to the
 *                  functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_actions        Stores the number of times each action was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the action to be executed.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
 */
function do_action_ref_array( $hook_name, $args ) {
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php
        if ( $this->request->is_rest_request() ) {
            return $presenters;
        }
 
        return \array_diff( $presenters, [ 'Yoast\\WP\\SEO\\Presenters\\Robots_Presenter' ] );
    }
 
    /**
     * Presents the head in the front-end. Resets wp_query if it's not the main query.
     *
     * @codeCoverageIgnore It just calls a WordPress function.
     */
    public function call_wpseo_head() {
        global $wp_query;
 
        $old_wp_query = $wp_query;
        // phpcs:ignore WordPress.WP.DiscouragedFunctions.wp_reset_query_wp_reset_query -- Reason: The recommended function, wp_reset_postdata, doesn't reset wp_query.
        \wp_reset_query();
 
        \do_action( 'wpseo_head' );
 
        // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Reason: we have to restore the query.
        $GLOBALS['wp_query'] = $old_wp_query;
    }
 
    /**
     * Echoes all applicable presenters for a page.
     */
    public function present_head() {
        $context    = $this->context_memoizer->for_current_page();
        $presenters = $this->get_presenters( $context->page_type, $context );
 
        /**
         * Filter 'wpseo_frontend_presentation' - Allow filtering the presentation used to output our meta values.
         *
         * @api Indexable_Presention The indexable presentation.
         */
        $presentation = \apply_filters( 'wpseo_frontend_presentation', $context->presentation, $context );
 
        echo \PHP_EOL;
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args                           = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
            $priority                                 = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 == $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level                      = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/plugin.php
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    if ( empty( $arg ) ) {
        $arg[] = '';
    } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
        // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
        $arg[0] = $arg[0][0];
    }
 
    $wp_filter[ $hook_name ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Calls the callback functions that have been added to an action hook, specifying arguments in an array.
 *
 * @since 2.1.0
 *
 * @see do_action() This function is identical, but the arguments passed to the
 *                  functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_actions        Stores the number of times each action was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the action to be executed.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
 */
function do_action_ref_array( $hook_name, $args ) {
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/general-template.php
     * @param string $before           The HTML to output before the date.
     * @param string $after            The HTML to output after the date.
     */
    echo apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );
}
 
/**
 * Fires the wp_head action.
 *
 * See {@see 'wp_head'}.
 *
 * @since 1.2.0
 */
function wp_head() {
    /**
     * Prints scripts or data in the head tag on the front end.
     *
     * @since 1.5.0
     */
    do_action( 'wp_head' );
}
 
/**
 * Fires the wp_footer action.
 *
 * See {@see 'wp_footer'}.
 *
 * @since 1.5.1
 */
function wp_footer() {
    /**
     * Prints scripts or data before the closing body tag on the front end.
     *
     * @since 1.5.1
     */
    do_action( 'wp_footer' );
}
 
/**
 * Fires the wp_body_open action.
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/themes/flatsome/header.php
<!DOCTYPE html>
<!--[if IE 9 ]> <html <?php language_attributes(); ?> class="ie9 <?php flatsome_html_classes(); ?>"> <![endif]-->
<!--[if IE 8 ]> <html <?php language_attributes(); ?> class="ie8 <?php flatsome_html_classes(); ?>"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?> class="<?php flatsome_html_classes(); ?>"> <!--<![endif]-->
<head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
 
    <?php wp_head(); ?>
</head>
 
<body <?php body_class(); ?>>
 
<?php do_action( 'flatsome_after_body_open' ); ?>
<?php wp_body_open(); ?>
 
<a class="skip-link screen-reader-text" href="#main"><?php esc_html_e( 'Skip to content', 'flatsome' ); ?></a>
 
<div id="wrapper">
 
    <?php do_action( 'flatsome_before_header' ); ?>
 
    <header id="header" class="header <?php flatsome_header_classes(); ?>">
        <div class="header-wrapper">
            <?php get_template_part( 'template-parts/header/header', 'wrapper' ); ?>
        </div>
    </header>
 
    <?php do_action( 'flatsome_after_header' ); ?>
 
    <main id="main" class="<?php flatsome_main_classes(); ?>">
 
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template.php
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    /**
     * Fires before a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $require_once   Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_before_load_template', $_template_file, $require_once, $args );
 
    if ( $require_once ) {
        require_once $_template_file;
    } else {
        require $_template_file;
    }
 
    /**
     * Fires after a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $require_once   Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_after_load_template', $_template_file, $require_once, $args );
}
 
Arguments
  1. "/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/themes/flatsome/header.php"
    
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template.php
function locate_template( $template_names, $load = false, $require_once = true, $args = array() ) {
    $located = '';
    foreach ( (array) $template_names as $template_name ) {
        if ( ! $template_name ) {
            continue;
        }
        if ( file_exists( STYLESHEETPATH . '/' . $template_name ) ) {
            $located = STYLESHEETPATH . '/' . $template_name;
            break;
        } elseif ( file_exists( TEMPLATEPATH . '/' . $template_name ) ) {
            $located = TEMPLATEPATH . '/' . $template_name;
            break;
        } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
            $located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
            break;
        }
    }
 
    if ( $load && '' !== $located ) {
        load_template( $located, $require_once, $args );
    }
 
    return $located;
}
 
/**
 * Requires the template file with WordPress environment.
 *
 * The globals are set up for the template file to ensure that the WordPress
 * environment is available from within the function. The query variables are
 * also available.
 *
 * @since 1.5.0
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @global array      $posts
 * @global WP_Post    $post          Global post object.
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query      WordPress Query object.
 * @global WP_Rewrite $wp_rewrite    WordPress rewrite component.
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/general-template.php
     * Fires before the header template file is loaded.
     *
     * @since 2.1.0
     * @since 2.8.0 The `$name` parameter was added.
     * @since 5.5.0 The `$args` parameter was added.
     *
     * @param string|null $name Name of the specific header file to use. Null for the default header.
     * @param array       $args Additional arguments passed to the header template.
     */
    do_action( 'get_header', $name, $args );
 
    $templates = array();
    $name      = (string) $name;
    if ( '' !== $name ) {
        $templates[] = "header-{$name}.php";
    }
 
    $templates[] = 'header.php';
 
    if ( ! locate_template( $templates, true, true, $args ) ) {
        return false;
    }
}
 
/**
 * Loads footer template.
 *
 * Includes the footer template for a theme or if a name is specified then a
 * specialised footer will be included.
 *
 * For the parameter, if the file is called "footer-special.php" then specify
 * "special".
 *
 * @since 1.5.0
 * @since 5.5.0 A return value was added.
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @param string $name The name of the specialised footer.
 * @param array  $args Optional. Additional arguments passed to the footer template.
 *                     Default empty array.
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/themes/continuum18/controllers/single-events.php
<?php
 
    // Standard Wordpress header
    get_header();
     
   //  use Timber\Timber;
 
    // http://continuum18.app66.alp1n3.com/practitioners/beverly-buehner-continuum-movement-teacher/
 
    global $pargs;
 
    $slug = $pargs['slug'];
 
    // single-practitioners.php
 
    $context = Timber::get_context();
 
    $context['post'] =  get_post_by_slug( $slug, 'event' );
 
    /*
 
*/
 
    $context['post_custom']['profile_image'] = 0;
 
    $post_thumbnail_id = get_post_thumbnail_id( $context['post']->ID  );
    if ( !empty( $post_thumbnail_id ) ) {
        $context['post_custom']['profile_image'] = new TimberImage( $post_thumbnail_id );
    }
    $context['post_custom']['cover_image'] =  get_post_meta( $context['post']->ID, "cover_image", true );
    
    $cover_image = $context['post_custom']['cover_image'];
    
    $context['event_cover_image'] = $cover_image["guid"] ?? 0;
    // $context['event_cover_image'] = wp_get_attachment_image($cover_image["ID"]);
    
//    d( $context['post_custom'] );
 
    $context['post_content'] = apply_filters( 'the_content', $context['post']->post_content );
 
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template-loader.php
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/themes/continuum18/controllers/single-events.php"
    
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template-loader.php"
    
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 
Arguments
  1. "/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.54 (Debian)"
REQUEST_URI
"/events/ucla-mindfulness-mindfulness-awareness-practices-maps/"
WP_REDIS_DISABLED
"0"
USER
"gqysvfgfzb"
HOME
"/home/743387.cloudwaysapps.com/gqysvfgfzb"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/events/ucla-mindfulness-mindfulness-awareness-practices-maps/"
REMOTE_PORT
"27956"
SCRIPT_FILENAME
"/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/index.php"
SERVER_ADMIN
"[no address given]"
CONTEXT_DOCUMENT_ROOT
"/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/"
REMOTE_ADDR
"127.0.0.1"
SERVER_PORT
"80"
SERVER_ADDR
"127.0.0.1"
SERVER_NAME
"continuummovement.com"
SERVER_SIGNATURE
"<address>Apache/2.4.54 (Debian) Server at continuummovement.com Port 80</address>\n"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
HTTP_X_VARNISH
"3089674"
HTTP_ACCEPT_ENCODING
"gzip"
HTTP_HOST
"continuummovement.com"
HTTP_X_FORWARDED_FOR
"3.236.138.35"
HTTP_CDN_LOOP
"cloudflare"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CF_CONNECTING_IP
"3.236.138.35"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_CF_RAY
"79111d897b7458d2-IAD"
HTTP_X_VERSION
"60"
HTTP_X_APP_USER
"gqysvfgfzb"
HTTP_X_APPLICATION
"wordpress"
HTTP_X_FORWARDED_HOST
"continuummovement.com"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_CLIENT_REAL_IP
"3.236.138.35"
HTTP_X_REAL_IP
"3.236.138.35"
BREEZE_BROWSER_CACHE_ON
"1"
BREEZE_GZIP_ON
"1"
SCRIPT_URI
"http://continuummovement.com/events/ucla-mindfulness-mindfulness-awareness-practices-maps/"
SCRIPT_URL
"/events/ucla-mindfulness-mindfulness-awareness-practices-maps/"
HTTP_AUTHORIZATION
""
HTTPS
"on"
cw_allowed_ip
"1"
REDIRECT_STATUS
"200"
REDIRECT_BREEZE_BROWSER_CACHE_ON
"1"
REDIRECT_BREEZE_GZIP_ON
"1"
REDIRECT_SCRIPT_URI
"http://continuummovement.com/events/ucla-mindfulness-mindfulness-awareness-practices-maps/"
REDIRECT_SCRIPT_URL
"/events/ucla-mindfulness-mindfulness-awareness-practices-maps/"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
REDIRECT_cw_allowed_ip
"1"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1674986369.6499
REQUEST_TIME
1674986369
empty
0. Whoops\Handler\PrettyPageHandler