ワードプレスで指定のフックにフックされた関数を手軽に調べる方法

ワードプレスで指定のフックにフックされた関数を手軽に調べる方法
2018年8月5日2020年3月24日

WordPressでフックを使用してカスタマイズをしていると、思いがけず上手く動かない事もしばしば。使いたいアクションフックやフィルターフックに、どんな関数がどんな順序でフックされているのか調べたい事って多いと思います。

という事で今回は、指定のアクション/フィルターフックに追加されている関数の一覧を表示できるショートコードを作ってみました。非公開のテストページ上に記述してプレビューで確認できます。

functions.phpにコードを追記

ショートコードを追加するコードです。コピーして、お使いのテーマのfunctions.phpの最後にでも貼り付けて下さい。

テスト用ページを作成

投稿ページでも固定ページでもよいのですが、本文に下のコードだけを書いたページを公開状態を「非公開*」にして作成しておきます。何でもいいので、使いたい時に見つけやすいタイトルを付けておいて下さい。

※下書きでも別に問題ありませんが、(私は)うっかり公開してしまいやすいので非公開がおすすめです。

とりあえずwp_footerとなっていますが、この部分を調べたいフックの名前に変更しましょう。このページをブラウザで見れば関数の一覧が表示されます。

例:the_contentを調べる場合

例を挙げておきます。the_contentにフックされている関数を表示するには、以下のショートコードを書きます。

実際の表示

以下は、実際にショートコードの引数をwp_footerとして出力したものです。

wp_footerにフックされている関数

priority:10

  1. [back_to_index]
  2. [add_origin_thanks_page]
  3. [000000000fce2952000000007682c39ffooter]
  4. [000000000fce30b8000000007682c39f]

priority:20

  1. [wp_print_footer_scripts]

priority:40

  1. [wpcf7_recaptcha_onload_script]

priority:99

  1. [000000000fce2955000000007682c39flateInit]

priority:1000

  1. [wp_admin_bar_render]

詳細

WP_Hook Object
(
    [callbacks] => Array
        (
            [10] => Array
                (
                    [back_to_index] => Array
                        (
                            [function] => back_to_index
                            [accepted_args] => 1
                        )

                    [add_origin_thanks_page] => Array
                        (
                            [function] => add_origin_thanks_page
                            [accepted_args] => 1
                        )

                    [000000000fce2952000000007682c39ffooter] => Array
                        (
                            [function] => Array
                                (
                                    [0] => WD_ASL_Init Object
                                        (
                                        )

                                    [1] => footer
                                )

                            [accepted_args] => 1
                        )

                    [000000000fce30b8000000007682c39f] => Array
                        (
                            [function] => Closure Object
                                (
                                    [static] => Array
                                        (
                                            [options] => ResponsiveMenu\Collections\OptionsCollection Object
                                                (
                                                    [options:ResponsiveMenu\Collections\OptionsCollection:private] => Array
                                                        (
                                                            [accordion_animation] => off
                                                            [active_arrow_font_icon] => 
                                                            [active_arrow_font_icon_type] => font-awesome
                                                            [active_arrow_image] => 
                                                            [active_arrow_image_alt] => 
                                                            [active_arrow_shape] => ▲
                                                            [admin_theme] => dark
                                                            [animation_speed] => 0.5
                                                            [animation_type] => slide
                                                            [arrow_position] => right
                                                            [auto_expand_all_submenus] => off
                                                            [auto_expand_current_submenus] => off
                                                            [breakpoint] => 767
                                                            [button_background_colour] => #000000
                                                            [button_background_colour_active] => #000000
                                                            [button_background_colour_hover] => #000000
                                                            [button_click_animation] => boring
                                                            [button_click_trigger] => #responsive-menu-button
                                                            [button_distance_from_side] => 0
                                                            [button_distance_from_side_unit] => %
                                                            [button_font] => 
                                                            [button_font_icon] => 
                                                            [button_font_icon_type] => font-awesome
                                                            [button_font_icon_when_clicked] => 
                                                            [button_font_icon_when_clicked_type] => font-awesome
                                                            [button_font_size] => 14
                                                            [button_font_size_unit] => px
                                                            [button_height] => 50
                                                            [button_height_unit] => px
                                                            [button_image] => 
                                                            [button_image_alt] => 
                                                            [button_image_alt_when_clicked] => 
                                                            [button_image_when_clicked] => 
                                                            [button_left_or_right] => right
                                                            [button_line_colour] => #ffffff
                                                            [button_line_colour_active] => #ffffff
                                                            [button_line_colour_hover] => #ffffff
                                                            [button_line_height] => 1
                                                            [button_line_height_unit] => px
                                                            [button_line_margin] => 5
                                                            [button_line_margin_unit] => px
                                                            [button_line_width] => 25
                                                            [button_line_width_unit] => px
                                                            [button_position_type] => fixed
                                                            [button_push_with_animation] => off
                                                            [button_text_colour] => #ffffff
                                                            [button_title] => 
                                                            [button_title_line_height] => 13
                                                            [button_title_line_height_unit] => px
                                                            [button_title_open] => 
                                                            [button_title_position] => left
                                                            [button_top] => 0
                                                            [button_top_unit] => px
                                                            [button_transparent_background] => on
                                                            [button_trigger_type] => click
                                                            [button_width] => 50
                                                            [button_width_unit] => px
                                                            [custom_css] => 
                                                            [custom_walker] => 
                                                            [desktop_menu_options] => {"7":{"type":"standard","width":"auto","parent_background_colour":"","parent_background_image":""},"2591":{"type":"standard","width":"auto","parent_background_colour":"","parent_background_image":""},"3065":{"width":"auto","widgets":[{"title":{"enabled":"true"}}]},"3147":{"width":"auto","widgets":[{"title":{"enabled":"true"}}]},"3062":{"width":"auto","widgets":[{"title":{"enabled":"true"}}]},"3063":{"width":"auto","widgets":[{"title":{"enabled":"true"}}]},"3512":{"width":"auto","widgets":[{"title":{"enabled":"true"}}]},"3841":{"width":"auto","widgets":[{"title":{"enabled":"true"}}]},"3511":{"width":"auto","widgets":[{"title":{"enabled":"true"}}]},"3828":{"width":"auto","widgets":[{"title":{"enabled":"true"}}]},"3064":{"width":"auto","widgets":[{"title":{"enabled":"true"}}]},"2590":{"type":"standard","width":"auto","parent_background_colour":"","parent_background_image":""},"2589":{"type":"standard","width":"auto","parent_background_colour":"","parent_background_image":""},"3140":{"type":"standard","width":"auto","parent_background_colour":"","parent_background_image":""}}
                                                            [desktop_menu_positioning] => fixed
                                                            [desktop_menu_side] => 
                                                            [desktop_menu_to_hide] => 
                                                            [desktop_menu_width] => 
                                                            [desktop_menu_width_unit] => %
                                                            [enable_touch_gestures] => 
                                                            [excluded_pages] => 
                                                            [external_files] => off
                                                            [fade_submenus] => off
                                                            [fade_submenus_delay] => 100
                                                            [fade_submenus_side] => left
                                                            [fade_submenus_speed] => 500
                                                            [header_bar_adjust_page] => 
                                                            [header_bar_background_color] => #ffffff
                                                            [header_bar_breakpoint] => 800
                                                            [header_bar_font] => 
                                                            [header_bar_font_size] => 14
                                                            [header_bar_font_size_unit] => px
                                                            [header_bar_height] => 80
                                                            [header_bar_height_unit] => px
                                                            [header_bar_html_content] => 
                                                            [header_bar_items_order] => {"logo":"on","title":"on","search":"on","html content":"on"}
                                                            [header_bar_logo] => 
                                                            [header_bar_logo_alt] => 
                                                            [header_bar_logo_height] => 
                                                            [header_bar_logo_height_unit] => px
                                                            [header_bar_logo_link] => 
                                                            [header_bar_logo_width] => 
                                                            [header_bar_logo_width_unit] => %
                                                            [header_bar_position_type] => fixed
                                                            [header_bar_text_color] => #ffffff
                                                            [header_bar_title] => 
                                                            [hide_on_desktop] => off
                                                            [hide_on_mobile] => off
                                                            [inactive_arrow_font_icon] => 
                                                            [inactive_arrow_font_icon_type] => font-awesome
                                                            [inactive_arrow_image] => 
                                                            [inactive_arrow_image_alt] => 
                                                            [inactive_arrow_shape] => ▼
                                                            [items_order] => {"title":"on","menu":"on","search":"","additional content":"on"}
                                                            [keyboard_shortcut_close_menu] => 27,37
                                                            [keyboard_shortcut_open_menu] => 32,39
                                                            [menu_additional_content] => [wpdreams_ajaxsearchlite]
                                                            [menu_additional_content_colour] => #ffffff
                                                            [menu_adjust_for_wp_admin_bar] => off
                                                            [menu_appear_from] => left
                                                            [menu_auto_height] => off
                                                            [menu_background_colour] => #dddddd
                                                            [menu_background_image] => 
                                                            [menu_border_width] => 1
                                                            [menu_border_width_unit] => px
                                                            [menu_close_on_body_click] => on
                                                            [menu_close_on_link_click] => on
                                                            [menu_close_on_scroll] => off
                                                            [menu_container_background_colour] => #dddddd
                                                            [menu_current_item_background_colour] => #aaaaaa
                                                            [menu_current_item_background_hover_colour] => #aaaaaa
                                                            [menu_current_item_border_colour] => #fa6464
                                                            [menu_current_item_border_hover_colour] => #fa6464
                                                            [menu_current_link_colour] => #ffffff
                                                            [menu_current_link_hover_colour] => #ffffff
                                                            [menu_depth] => 5
                                                            [menu_depth_0] => 5
                                                            [menu_depth_0_unit] => %
                                                            [menu_depth_1] => 10
                                                            [menu_depth_1_unit] => %
                                                            [menu_depth_2] => 15
                                                            [menu_depth_2_unit] => %
                                                            [menu_depth_3] => 20
                                                            [menu_depth_3_unit] => %
                                                            [menu_depth_4] => 25
                                                            [menu_depth_4_unit] => %
                                                            [menu_depth_5] => 30
                                                            [menu_depth_5_unit] => %
                                                            [menu_depth_side] => left
                                                            [menu_disable_scrolling] => off
                                                            [menu_font] => 
                                                            [menu_font_icons] => {"id":[""],"icon":[""],"type":[""]}
                                                            [menu_font_size] => 16
                                                            [menu_font_size_unit] => px
                                                            [menu_item_background_colour] => #dddddd
                                                            [menu_item_background_hover_colour] => #dddddd
                                                            [menu_item_border_colour] => #aaaaaa
                                                            [menu_item_border_colour_hover] => #212121
                                                            [menu_item_click_to_trigger_submenu] => off
                                                            [menu_link_colour] => #555555
                                                            [menu_link_hover_colour] => #555555
                                                            [menu_links_height] => 50
                                                            [menu_links_height_unit] => px
                                                            [menu_links_line_height] => 50
                                                            [menu_links_line_height_unit] => px
                                                            [menu_maximum_width] => 
                                                            [menu_maximum_width_unit] => px
                                                            [menu_minimum_width] => 
                                                            [menu_minimum_width_unit] => px
                                                            [menu_overlay] => off
                                                            [menu_overlay_colour] => rgba(0, 0, 0, 0.7)
                                                            [menu_search_box_background_colour] => #ffffff
                                                            [menu_search_box_border_colour] => #dadada
                                                            [menu_search_box_placeholder_colour] => #c7c7cd
                                                            [menu_search_box_text] => Search
                                                            [menu_search_box_text_colour] => #333333
                                                            [menu_sub_arrow_background_colour] => #555555
                                                            [menu_sub_arrow_background_colour_active] => #888888
                                                            [menu_sub_arrow_background_hover_colour] => #555555
                                                            [menu_sub_arrow_background_hover_colour_active] => #888888
                                                            [menu_sub_arrow_border_colour] => #555555
                                                            [menu_sub_arrow_border_colour_active] => #888888
                                                            [menu_sub_arrow_border_hover_colour] => #555555
                                                            [menu_sub_arrow_border_hover_colour_active] => #888888
                                                            [menu_sub_arrow_shape_colour] => #ffffff
                                                            [menu_sub_arrow_shape_colour_active] => #ffffff
                                                            [menu_sub_arrow_shape_hover_colour] => #ffffff
                                                            [menu_sub_arrow_shape_hover_colour_active] => #ffffff
                                                            [menu_text_alignment] => left
                                                            [menu_theme] => 
                                                            [menu_title] => 
                                                            [menu_title_alignment] => left
                                                            [menu_title_background_colour] => #212121
                                                            [menu_title_background_hover_colour] => #212121
                                                            [menu_title_colour] => #ffffff
                                                            [menu_title_font_icon] => 
                                                            [menu_title_font_icon_type] => font-awesome
                                                            [menu_title_font_size] => 13
                                                            [menu_title_font_size_unit] => px
                                                            [menu_title_hover_colour] => #ffffff
                                                            [menu_title_image] => 
                                                            [menu_title_image_alt] => 
                                                            [menu_title_image_height] => 
                                                            [menu_title_image_height_unit] => px
                                                            [menu_title_image_width] => 
                                                            [menu_title_image_width_unit] => %
                                                            [menu_title_link] => 
                                                            [menu_title_link_location] => _self
                                                            [menu_to_hide] => .navbar-toggler
                                                            [menu_to_use] => %e3%83%98%e3%83%83%e3%83%80%e3%83%bc%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc
                                                            [menu_width] => 80
                                                            [menu_width_unit] => %
                                                            [menu_word_wrap] => on
                                                            [minify_scripts] => off
                                                            [mobile_only] => off
                                                            [page_wrapper] => 
                                                            [remove_bootstrap] => 
                                                            [remove_fontawesome] => 
                                                            [scripts_in_footer] => off
                                                            [shortcode] => off
                                                            [show_menu_on_page_load] => 
                                                            [single_menu_font] => 
                                                            [single_menu_font_size] => 14
                                                            [single_menu_font_size_unit] => px
                                                            [single_menu_height] => 80
                                                            [single_menu_height_unit] => px
                                                            [single_menu_item_background_colour] => #ffffff
                                                            [single_menu_item_background_colour_hover] => #ffffff
                                                            [single_menu_item_link_colour] => #000000
                                                            [single_menu_item_link_colour_hover] => #000000
                                                            [single_menu_item_submenu_background_colour] => #ffffff
                                                            [single_menu_item_submenu_background_colour_hover] => #ffffff
                                                            [single_menu_item_submenu_link_colour] => #000000
                                                            [single_menu_item_submenu_link_colour_hover] => #000000
                                                            [single_menu_line_height] => 80
                                                            [single_menu_line_height_unit] => px
                                                            [single_menu_submenu_font] => 
                                                            [single_menu_submenu_font_size] => 12
                                                            [single_menu_submenu_font_size_unit] => px
                                                            [single_menu_submenu_height] => 
                                                            [single_menu_submenu_height_unit] => auto
                                                            [single_menu_submenu_line_height] => 40
                                                            [single_menu_submenu_line_height_unit] => px
                                                            [slide_effect_back_to_text] => Back
                                                            [smooth_scroll_on] => off
                                                            [smooth_scroll_speed] => 500
                                                            [sub_menu_speed] => 0.2
                                                            [submenu_arrow_height] => 50
                                                            [submenu_arrow_height_unit] => px
                                                            [submenu_arrow_position] => right
                                                            [submenu_arrow_width] => 50
                                                            [submenu_arrow_width_unit] => px
                                                            [submenu_border_width] => 1
                                                            [submenu_border_width_unit] => px
                                                            [submenu_current_item_background_colour] => #212121
                                                            [submenu_current_item_background_hover_colour] => #3f3f3f
                                                            [submenu_current_item_border_colour] => #212121
                                                            [submenu_current_item_border_hover_colour] => #3f3f3f
                                                            [submenu_current_link_colour] => #ffffff
                                                            [submenu_current_link_hover_colour] => #ffffff
                                                            [submenu_descriptions_on] => 
                                                            [submenu_font] => 
                                                            [submenu_font_size] => 13
                                                            [submenu_font_size_unit] => px
                                                            [submenu_item_background_colour] => #212121
                                                            [submenu_item_background_hover_colour] => #3f3f3f
                                                            [submenu_item_border_colour] => #212121
                                                            [submenu_item_border_colour_hover] => #212121
                                                            [submenu_link_colour] => #ffffff
                                                            [submenu_link_hover_colour] => #ffffff
                                                            [submenu_links_height] => 40
                                                            [submenu_links_height_unit] => px
                                                            [submenu_links_line_height] => 40
                                                            [submenu_links_line_height_unit] => px
                                                            [submenu_sub_arrow_background_colour] => #212121
                                                            [submenu_sub_arrow_background_colour_active] => #212121
                                                            [submenu_sub_arrow_background_hover_colour] => #3f3f3f
                                                            [submenu_sub_arrow_background_hover_colour_active] => #3f3f3f
                                                            [submenu_sub_arrow_border_colour] => #212121
                                                            [submenu_sub_arrow_border_colour_active] => #212121
                                                            [submenu_sub_arrow_border_hover_colour] => #3f3f3f
                                                            [submenu_sub_arrow_border_hover_colour_active] => #3f3f3f
                                                            [submenu_sub_arrow_shape_colour] => #ffffff
                                                            [submenu_sub_arrow_shape_colour_active] => #ffffff
                                                            [submenu_sub_arrow_shape_hover_colour] => #ffffff
                                                            [submenu_sub_arrow_shape_hover_colour_active] => #ffffff
                                                            [submenu_submenu_arrow_height] => 39
                                                            [submenu_submenu_arrow_height_unit] => px
                                                            [submenu_submenu_arrow_width] => 40
                                                            [submenu_submenu_arrow_width_unit] => px
                                                            [submenu_text_alignment] => left
                                                            [theme_location_menu] => 
                                                            [transition_speed] => 0.5
                                                            [use_desktop_menu] => 
                                                            [use_header_bar] => off
                                                            [use_slide_effect] => off
                                                        )

                                                )

                                        )

                                    [this] => ResponsiveMenu\Controllers\FrontController Object
                                        (
                                            [manager] => ResponsiveMenu\Management\OptionManager Object
                                                (
                                                    [db:ResponsiveMenu\Management\OptionManager:private] => ResponsiveMenu\Database\Database Object
                                                        (
                                                            [db] => wpdb Object
                                                                (
                                                                    [show_errors] => 
                                                                    [suppress_errors] => 
                                                                    [last_error] => 
                                                                    [num_queries] => 60
                                                                    [num_rows] => 1
                                                                    [rows_affected] => 0
                                                                    [insert_id] => 0
                                                                    [last_query] => SELECT * FROM wp_posts WHERE ID = 2593 LIMIT 1
                                                                    [last_result] => Array
                                                                        (
                                                                            [0] => stdClass Object
                                                                                (
                                                                                    [ID] => 2593
                                                                                    [post_author] => 1
                                                                                    [post_date] => 2018-07-20 15:33:53
                                                                                    [post_date_gmt] => 2018-07-20 06:33:53
                                                                                    [post_content] => 
                                                                                    [post_title] => タイトルロゴ
                                                                                    [post_excerpt] => 
                                                                                    [post_status] => inherit
                                                                                    [comment_status] => open
                                                                                    [ping_status] => closed
                                                                                    [post_password] => 
                                                                                    [post_name] => %e3%82%bf%e3%82%a4%e3%83%88%e3%83%ab%e3%83%ad%e3%82%b4-2
                                                                                    [to_ping] => 
                                                                                    [pinged] => 
                                                                                    [post_modified] => 2018-07-20 15:33:53
                                                                                    [post_modified_gmt] => 2018-07-20 06:33:53
                                                                                    [post_content_filtered] => 
                                                                                    [post_parent] => 0
                                                                                    [guid] => http://whitewood-hp.com/web-tips/wp-content/uploads/2018/07/2fd0f51d896b598f879cccf6b4b340cd-1.png
                                                                                    [menu_order] => 0
                                                                                    [post_type] => attachment
                                                                                    [post_mime_type] => image/png
                                                                                    [comment_count] => 0
                                                                                    [filter] => raw
                                                                                )

                                                                        )

                                                                    [result:protected] => mysqli_result Object
                                                                        (
                                                                            [current_field] => 0
                                                                            [field_count] => 23
                                                                            [lengths] => 
                                                                            [num_rows] => 1
                                                                            [type] => 0
                                                                        )

                                                                    [col_meta:protected] => Array
                                                                        (
                                                                            [wp_postmeta] => Array
                                                                                (
                                                                                    [meta_id] => stdClass Object
                                                                                        (
                                                                                            [Field] => meta_id
                                                                                            [Type] => bigint(20) unsigned
                                                                                            [Collation] => 
                                                                                            [Null] => NO
                                                                                            [Key] => PRI
                                                                                            [Default] => 
                                                                                            [Extra] => auto_increment
                                                                                            [Privileges] => select,insert,update,references
                                                                                            [Comment] => 
                                                                                        )

                                                                                    [post_id] => stdClass Object
                                                                                        (
                                                                                            [Field] => post_id
                                                                                            [Type] => bigint(20) unsigned
                                                                                            [Collation] => 
                                                                                            [Null] => NO
                                                                                            [Key] => MUL
                                                                                            [Default] => 0
                                                                                            [Extra] => 
                                                                                            [Privileges] => select,insert,update,references
                                                                                            [Comment] => 
                                                                                        )

                                                                                    [meta_key] => stdClass Object
                                                                                        (
                                                                                            [Field] => meta_key
                                                                                            [Type] => varchar(255)
                                                                                            [Collation] => utf8_general_ci
                                                                                            [Null] => YES
                                                                                            [Key] => MUL
                                                                                            [Default] => 
                                                                                            [Extra] => 
                                                                                            [Privileges] => select,insert,update,references
                                                                                            [Comment] => 
                                                                                        )

                                                                                    [meta_value] => stdClass Object
                                                                                        (
                                                                                            [Field] => meta_value
                                                                                            [Type] => longtext
                                                                                            [Collation] => utf8_general_ci
                                                                                            [Null] => YES
                                                                                            [Key] => 
                                                                                            [Default] => 
                                                                                            [Extra] => 
                                                                                            [Privileges] => select,insert,update,references
                                                                                            [Comment] => 
                                                                                        )

                                                                                )

                                                                        )

                                                                    [table_charset:protected] => Array
                                                                        (
                                                                            [wp_postmeta] => utf8
                                                                        )

                                                                    [check_current_query:protected] => 1
                                                                    [checking_collation:wpdb:private] => 
                                                                    [col_info:protected] => 
                                                                    [queries] => 
                                                                    [reconnect_retries:protected] => 5
                                                                    [prefix] => wp_
                                                                    [base_prefix] => wp_
                                                                    [ready] => 1
                                                                    [blogid] => 0
                                                                    [siteid] => 0
                                                                    [tables] => Array
                                                                        (
                                                                            [0] => posts
                                                                            [1] => comments
                                                                            [2] => links
                                                                            [3] => options
                                                                            [4] => postmeta
                                                                            [5] => terms
                                                                            [6] => term_taxonomy
                                                                            [7] => term_relationships
                                                                            [8] => termmeta
                                                                            [9] => commentmeta
                                                                        )

                                                                    [old_tables] => Array
                                                                        (
                                                                            [0] => categories
                                                                            [1] => post2cat
                                                                            [2] => link2cat
                                                                        )

                                                                    [global_tables] => Array
                                                                        (
                                                                            [0] => users
                                                                            [1] => usermeta
                                                                        )

                                                                    [ms_global_tables] => Array
                                                                        (
                                                                            [0] => blogs
                                                                            [1] => blogmeta
                                                                            [2] => signups
                                                                            [3] => site
                                                                            [4] => sitemeta
                                                                            [5] => sitecategories
                                                                            [6] => registration_log
                                                                            [7] => blog_versions
                                                                        )

                                                                    [comments] => wp_comments
                                                                    [commentmeta] => wp_commentmeta
                                                                    [links] => wp_links
                                                                    [options] => wp_options
                                                                    [postmeta] => wp_postmeta
                                                                    [posts] => wp_posts
                                                                    [terms] => wp_terms
                                                                    [term_relationships] => wp_term_relationships
                                                                    [term_taxonomy] => wp_term_taxonomy
                                                                    [termmeta] => wp_termmeta
                                                                    [usermeta] => wp_usermeta
                                                                    [users] => wp_users
                                                                    [blogs] => 
                                                                    [blogmeta] => 
                                                                    [blog_versions] => 
                                                                    [registration_log] => 
                                                                    [signups] => 
                                                                    [site] => 
                                                                    [sitecategories] => 
                                                                    [sitemeta] => 
                                                                    [field_types] => Array
                                                                        (
                                                                            [post_author] => %d
                                                                            [post_parent] => %d
                                                                            [menu_order] => %d
                                                                            [term_id] => %d
                                                                            [term_group] => %d
                                                                            [term_taxonomy_id] => %d
                                                                            [parent] => %d
                                                                            [count] => %d
                                                                            [object_id] => %d
                                                                            [term_order] => %d
                                                                            [ID] => %d
                                                                            [comment_ID] => %d
                                                                            [comment_post_ID] => %d
                                                                            [comment_parent] => %d
                                                                            [user_id] => %d
                                                                            [link_id] => %d
                                                                            [link_owner] => %d
                                                                            [link_rating] => %d
                                                                            [option_id] => %d
                                                                            [blog_id] => %d
                                                                            [meta_id] => %d
                                                                            [post_id] => %d
                                                                            [user_status] => %d
                                                                            [umeta_id] => %d
                                                                            [comment_karma] => %d
                                                                            [comment_count] => %d
                                                                            [active] => %d
                                                                            [cat_id] => %d
                                                                            [deleted] => %d
                                                                            [lang_id] => %d
                                                                            [mature] => %d
                                                                            [public] => %d
                                                                            [site_id] => %d
                                                                            [spam] => %d
                                                                        )

                                                                    [charset] => utf8mb4
                                                                    [collate] => utf8mb4_unicode_520_ci
                                                                    [dbuser:protected] => shopstars_ww
                                                                    [dbpassword:protected] => choji20160521
                                                                    [dbname:protected] => shopstars_wp6
                                                                    [dbhost:protected] => mysql901b.xserver.jp
                                                                    [dbh:protected] => mysqli Object
                                                                        (
                                                                            [affected_rows] => 1
                                                                            [client_info] => 5.5.64-MariaDB
                                                                            [client_version] => 50564
                                                                            [connect_errno] => 0
                                                                            [connect_error] => 
                                                                            [errno] => 0
                                                                            [error] => 
                                                                            [error_list] => Array
                                                                                (
                                                                                )

                                                                            [field_count] => 23
                                                                            [host_info] => mysql901b.xserver.jp via TCP/IP
                                                                            [info] => 
                                                                            [insert_id] => 0
                                                                            [server_info] => 5.7.27
                                                                            [server_version] => 50727
                                                                            [stat] => Uptime: 15263486  Threads: 6  Questions: 8198726483  Slow queries: 0  Opens: 342029417  Flush tables: 1  Open tables: 10000  Queries per second avg: 537.146
                                                                            [sqlstate] => 00000
                                                                            [protocol_version] => 10
                                                                            [thread_id] => 106939836
                                                                            [warning_count] => 0
                                                                        )

                                                                    [func_call] => $db->query("SELECT * FROM wp_posts WHERE ID = 2593 LIMIT 1")
                                                                    [is_mysql] => 1
                                                                    [incompatible_modes:protected] => Array
                                                                        (
                                                                            [0] => NO_ZERO_DATE
                                                                            [1] => ONLY_FULL_GROUP_BY
                                                                            [2] => STRICT_TRANS_TABLES
                                                                            [3] => STRICT_ALL_TABLES
                                                                            [4] => TRADITIONAL
                                                                        )

                                                                    [use_mysqli:wpdb:private] => 1
                                                                    [has_connected:wpdb:private] => 1
                                                                    [categories] => wp_categories
                                                                    [post2cat] => wp_post2cat
                                                                    [link2cat] => wp_link2cat
                                                                )

                                                        )

                                                    [default_options:ResponsiveMenu\Management\OptionManager:private] => Array
                                                        (
                                                            [breakpoint] => 8000
                                                            [menu_to_hide] => 
                                                            [menu_depth] => 5
                                                            [menu_depth_side] => left
                                                            [menu_depth_0] => 5
                                                            [menu_depth_1] => 10
                                                            [menu_depth_2] => 15
                                                            [menu_depth_3] => 20
                                                            [menu_depth_4] => 25
                                                            [menu_depth_5] => 30
                                                            [menu_depth_0_unit] => %
                                                            [menu_depth_1_unit] => %
                                                            [menu_depth_2_unit] => %
                                                            [menu_depth_3_unit] => %
                                                            [menu_depth_4_unit] => %
                                                            [menu_depth_5_unit] => %
                                                            [menu_to_use] => 
                                                            [theme_location_menu] => 
                                                            [show_menu_on_page_load] => 
                                                            [keyboard_shortcut_close_menu] => 27,37
                                                            [keyboard_shortcut_open_menu] => 32,39
                                                            [button_title] => 
                                                            [button_title_open] => 
                                                            [button_image] => 
                                                            [button_image_alt] => 
                                                            [button_image_when_clicked] => 
                                                            [button_image_alt_when_clicked] => 
                                                            [button_font] => 
                                                            [button_font_icon] => 
                                                            [button_font_icon_type] => font-awesome
                                                            [button_font_icon_when_clicked] => 
                                                            [button_font_icon_when_clicked_type] => font-awesome
                                                            [button_trigger_type] => click
                                                            [button_click_trigger] => #responsive-menu-button
                                                            [button_title_position] => left
                                                            [button_title_line_height] => 13
                                                            [button_title_line_height_unit] => px
                                                            [button_background_colour] => #000
                                                            [button_background_colour_hover] => #000
                                                            [button_background_colour_active] => #000
                                                            [button_click_animation] => boring
                                                            [button_line_colour] => #fff
                                                            [button_line_colour_hover] => #fff
                                                            [button_line_colour_active] => #fff
                                                            [button_text_colour] => #fff
                                                            [button_transparent_background] => off
                                                            [button_width] => 55
                                                            [button_width_unit] => px
                                                            [button_height] => 55
                                                            [button_height_unit] => px
                                                            [button_line_margin] => 5
                                                            [button_line_margin_unit] => px
                                                            [button_line_height] => 3
                                                            [button_line_height_unit] => px
                                                            [button_line_width] => 25
                                                            [button_line_width_unit] => px
                                                            [button_top] => 15
                                                            [button_top_unit] => px
                                                            [button_distance_from_side] => 5
                                                            [button_distance_from_side_unit] => %
                                                            [button_left_or_right] => right
                                                            [button_position_type] => fixed
                                                            [button_push_with_animation] => off
                                                            [button_font_size] => 14
                                                            [button_font_size_unit] => px
                                                            [animation_type] => slide
                                                            [page_wrapper] => 
                                                            [animation_speed] => 0.5
                                                            [transition_speed] => 0.5
                                                            [sub_menu_speed] => 0.2
                                                            [active_arrow_shape] => ▲
                                                            [inactive_arrow_shape] => ▼
                                                            [active_arrow_image] => 
                                                            [active_arrow_image_alt] => 
                                                            [inactive_arrow_image] => 
                                                            [inactive_arrow_image_alt] => 
                                                            [active_arrow_font_icon] => 
                                                            [active_arrow_font_icon_type] => font-awesome
                                                            [inactive_arrow_font_icon] => 
                                                            [inactive_arrow_font_icon_type] => font-awesome
                                                            [arrow_position] => right
                                                            [submenu_arrow_width] => 40
                                                            [submenu_arrow_width_unit] => px
                                                            [submenu_arrow_height] => 39
                                                            [submenu_arrow_height_unit] => px
                                                            [submenu_descriptions_on] => 
                                                            [accordion_animation] => off
                                                            [auto_expand_all_submenus] => off
                                                            [auto_expand_current_submenus] => off
                                                            [menu_background_colour] => #212121
                                                            [menu_container_background_colour] => #212121
                                                            [menu_background_image] => 
                                                            [menu_item_background_colour] => #212121
                                                            [menu_item_background_hover_colour] => #3f3f3f
                                                            [menu_item_border_colour] => #212121
                                                            [menu_item_border_colour_hover] => #212121
                                                            [menu_title_background_colour] => #212121
                                                            [menu_title_background_hover_colour] => #212121
                                                            [menu_current_item_background_colour] => #212121
                                                            [menu_current_item_background_hover_colour] => #3f3f3f
                                                            [menu_current_item_border_colour] => #212121
                                                            [menu_current_item_border_hover_colour] => #3f3f3f
                                                            [menu_title_colour] => #fff
                                                            [menu_title_hover_colour] => #fff
                                                            [menu_link_colour] => #fff
                                                            [menu_link_hover_colour] => #fff
                                                            [menu_current_link_colour] => #fff
                                                            [menu_current_link_hover_colour] => #fff
                                                            [menu_sub_arrow_border_colour] => #212121
                                                            [menu_sub_arrow_border_hover_colour] => #3f3f3f
                                                            [menu_sub_arrow_border_colour_active] => #212121
                                                            [menu_sub_arrow_border_hover_colour_active] => #3f3f3f
                                                            [menu_sub_arrow_background_colour] => #212121
                                                            [menu_sub_arrow_background_hover_colour] => #3f3f3f
                                                            [menu_sub_arrow_background_colour_active] => #212121
                                                            [menu_sub_arrow_background_hover_colour_active] => #3f3f3f
                                                            [menu_sub_arrow_shape_colour] => #fff
                                                            [menu_sub_arrow_shape_hover_colour] => #fff
                                                            [menu_sub_arrow_shape_colour_active] => #fff
                                                            [menu_sub_arrow_shape_hover_colour_active] => #fff
                                                            [submenu_font] => 
                                                            [submenu_font_size] => 13
                                                            [submenu_font_size_unit] => px
                                                            [submenu_links_height] => 40
                                                            [submenu_links_height_unit] => px
                                                            [submenu_links_line_height] => 40
                                                            [submenu_links_line_height_unit] => px
                                                            [submenu_text_alignment] => left
                                                            [submenu_border_width] => 1
                                                            [submenu_border_width_unit] => px
                                                            [submenu_item_border_colour] => #212121
                                                            [submenu_item_border_colour_hover] => #212121
                                                            [submenu_current_item_border_colour] => #212121
                                                            [submenu_current_item_border_hover_colour] => #3f3f3f
                                                            [submenu_link_colour] => #fff
                                                            [submenu_link_hover_colour] => #fff
                                                            [submenu_current_link_colour] => #fff
                                                            [submenu_current_link_hover_colour] => #fff
                                                            [submenu_item_background_colour] => #212121
                                                            [submenu_item_background_hover_colour] => #3f3f3f
                                                            [submenu_current_item_background_colour] => #212121
                                                            [submenu_current_item_background_hover_colour] => #3f3f3f
                                                            [submenu_arrow_position] => right
                                                            [submenu_submenu_arrow_height] => 39
                                                            [submenu_submenu_arrow_height_unit] => px
                                                            [submenu_submenu_arrow_width] => 40
                                                            [submenu_submenu_arrow_width_unit] => px
                                                            [submenu_sub_arrow_shape_colour] => #fff
                                                            [submenu_sub_arrow_shape_hover_colour] => #fff
                                                            [submenu_sub_arrow_shape_colour_active] => #fff
                                                            [submenu_sub_arrow_shape_hover_colour_active] => #fff
                                                            [submenu_sub_arrow_background_colour] => #212121
                                                            [submenu_sub_arrow_background_hover_colour] => #3f3f3f
                                                            [submenu_sub_arrow_background_colour_active] => #212121
                                                            [submenu_sub_arrow_background_hover_colour_active] => #3f3f3f
                                                            [submenu_sub_arrow_border_colour] => #212121
                                                            [submenu_sub_arrow_border_hover_colour] => #3f3f3f
                                                            [submenu_sub_arrow_border_colour_active] => #212121
                                                            [submenu_sub_arrow_border_hover_colour_active] => #3f3f3f
                                                            [menu_font] => 
                                                            [menu_font_size] => 13
                                                            [menu_font_size_unit] => px
                                                            [menu_title_font_size] => 13
                                                            [menu_title_font_size_unit] => px
                                                            [menu_text_alignment] => left
                                                            [menu_links_height] => 40
                                                            [menu_links_height_unit] => px
                                                            [menu_links_line_height] => 40
                                                            [menu_links_line_height_unit] => px
                                                            [menu_border_width] => 1
                                                            [menu_border_width_unit] => px
                                                            [menu_minimum_width] => 
                                                            [menu_minimum_width_unit] => px
                                                            [menu_maximum_width] => 
                                                            [menu_maximum_width_unit] => px
                                                            [menu_auto_height] => off
                                                            [menu_adjust_for_wp_admin_bar] => off
                                                            [menu_additional_content] => 
                                                            [menu_additional_content_colour] => #fff
                                                            [menu_title] => 
                                                            [menu_title_alignment] => left
                                                            [menu_title_image] => 
                                                            [menu_title_image_alt] => 
                                                            [menu_title_image_height] => 
                                                            [menu_title_image_height_unit] => px
                                                            [menu_title_image_width] => 
                                                            [menu_title_image_width_unit] => %
                                                            [menu_title_font_icon] => 
                                                            [menu_title_font_icon_type] => font-awesome
                                                            [menu_appear_from] => left
                                                            [menu_title_link] => 
                                                            [menu_title_link_location] => _self
                                                            [menu_width] => 75
                                                            [menu_width_unit] => %
                                                            [menu_close_on_link_click] => off
                                                            [menu_close_on_body_click] => off
                                                            [menu_close_on_scroll] => off
                                                            [enable_touch_gestures] => 
                                                            [menu_item_click_to_trigger_submenu] => off
                                                            [menu_disable_scrolling] => off
                                                            [menu_overlay] => off
                                                            [menu_overlay_colour] => rgba(0,0,0,0.7)
                                                            [menu_font_icons] => 
                                                            [menu_search_box_text] => Search
                                                            [menu_search_box_text_colour] => #333
                                                            [menu_search_box_border_colour] => #dadada
                                                            [menu_search_box_background_colour] => #fff
                                                            [menu_search_box_placeholder_colour] => #C7C7CD
                                                            [menu_word_wrap] => off
                                                            [minify_scripts] => off
                                                            [scripts_in_footer] => off
                                                            [external_files] => off
                                                            [remove_fontawesome] => 
                                                            [remove_bootstrap] => 
                                                            [shortcode] => off
                                                            [mobile_only] => off
                                                            [hide_on_mobile] => off
                                                            [hide_on_desktop] => off
                                                            [excluded_pages] => 
                                                            [custom_walker] => 
                                                            [custom_css] => 
                                                            [use_desktop_menu] => 
                                                            [desktop_menu_to_hide] => 
                                                            [desktop_menu_options] => {}
                                                            [desktop_menu_positioning] => fixed
                                                            [desktop_menu_width] => 
                                                            [desktop_menu_width_unit] => px
                                                            [desktop_menu_side] => 
                                                            [single_menu_height] => 80
                                                            [single_menu_height_unit] => px
                                                            [single_menu_line_height] => 80
                                                            [single_menu_line_height_unit] => px
                                                            [single_menu_font] => 
                                                            [single_menu_font_size] => 14
                                                            [single_menu_font_size_unit] => px
                                                            [single_menu_submenu_height] => 
                                                            [single_menu_submenu_height_unit] => auto
                                                            [single_menu_submenu_line_height] => 40
                                                            [single_menu_submenu_line_height_unit] => px
                                                            [single_menu_submenu_font] => 
                                                            [single_menu_submenu_font_size] => 12
                                                            [single_menu_submenu_font_size_unit] => px
                                                            [single_menu_item_link_colour] => #000000
                                                            [single_menu_item_link_colour_hover] => #000000
                                                            [single_menu_item_background_colour] => #ffffff
                                                            [single_menu_item_background_colour_hover] => #ffffff
                                                            [single_menu_item_submenu_link_colour] => #000000
                                                            [single_menu_item_submenu_link_colour_hover] => #000000
                                                            [single_menu_item_submenu_background_colour] => #ffffff
                                                            [single_menu_item_submenu_background_colour_hover] => #ffffff
                                                            [use_header_bar] => off
                                                            [header_bar_adjust_page] => 
                                                            [header_bar_breakpoint] => 800
                                                            [header_bar_logo] => 
                                                            [header_bar_logo_height] => 
                                                            [header_bar_logo_height_unit] => px
                                                            [header_bar_logo_width] => 
                                                            [header_bar_logo_width_unit] => %
                                                            [header_bar_logo_alt] => 
                                                            [header_bar_logo_link] => 
                                                            [header_bar_title] => 
                                                            [header_bar_html_content] => 
                                                            [header_bar_height] => 80
                                                            [header_bar_height_unit] => px
                                                            [header_bar_font_size] => 14
                                                            [header_bar_font_size_unit] => px
                                                            [header_bar_font] => 
                                                            [header_bar_background_color] => #ffffff
                                                            [header_bar_text_color] => #ffffff
                                                            [header_bar_position_type] => fixed
                                                            [items_order] => {"title":"on","menu":"on","search":"on","additional content":"on"}
                                                            [header_bar_items_order] => {"logo":"on","title":"on","search":"on","html content":"on"}
                                                            [smooth_scroll_on] => off
                                                            [smooth_scroll_speed] => 500
                                                            [fade_submenus] => off
                                                            [fade_submenus_side] => left
                                                            [fade_submenus_delay] => 100
                                                            [fade_submenus_speed] => 500
                                                            [use_slide_effect] => off
                                                            [slide_effect_back_to_text] => Back
                                                            [admin_theme] => dark
                                                            [menu_theme] => 
                                                        )

                                                )

                                            [view] => ResponsiveMenu\View\View Object
                                                (
                                                    [twig:protected] => Twig_Environment Object
                                                        (
                                                            [charset:protected] => UTF-8
                                                            [loader:protected] => Twig_Loader_Filesystem Object
                                                                (
                                                                    [paths:protected] => Array
                                                                        (
                                                                            [__main__] => Array
                                                                                (
                                                                                    [0] => /home/shop-stars/whitewood-hp.com/public_html/web-tips/wp-content/plugins/responsive-menu/views
                                                                                    [1] => /home/shop-stars/whitewood-hp.com/public_html/web-tips/wp-content/plugins/responsive-menu/public
                                                                                )

                                                                        )

                                                                    [cache:protected] => Array
                                                                        (
                                                                            [css/app.css.twig] => /home/shop-stars/whitewood-hp.com/public_html/web-tips/wp-content/plugins/responsive-menu/public/css/app.css.twig
                                                                            [css/animations/boring.css.twig] => /home/shop-stars/whitewood-hp.com/public_html/web-tips/wp-content/plugins/responsive-menu/public/css/animations/boring.css.twig
                                                                            [js/app.js.twig] => /home/shop-stars/whitewood-hp.com/public_html/web-tips/wp-content/plugins/responsive-menu/public/js/app.js.twig
                                                                        )

                                                                    [errorCache:protected] => Array
                                                                        (
                                                                        )

                                                                    [rootPath:Twig_Loader_Filesystem:private] => /home/shop-stars/whitewood-hp.com/public_html/web-tips/
                                                                )

                                                            [debug:protected] => 
                                                            [autoReload:protected] => 
                                                            [cache:protected] => Twig_Cache_Null Object
                                                                (
                                                                )

                                                            [lexer:protected] => Twig_Lexer Object
                                                                (
                                                                    [tokens:protected] => Array
                                                                        (
                                                                            [0] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => jQuery(document).ready(function($) {

    var ResponsiveMenu = {
        trigger: '
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 1
                                                                                )

                                                                            [1] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 4
                                                                                )

                                                                            [2] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 4
                                                                                )

                                                                            [3] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 4
                                                                                )

                                                                            [4] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => button_click_trigger
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 4
                                                                                )

                                                                            [5] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 4
                                                                                )

                                                                            [6] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ',
        animationSpeed: 
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 4
                                                                                )

                                                                            [7] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 5
                                                                                )

                                                                            [8] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 5
                                                                                )

                                                                            [9] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 5
                                                                                )

                                                                            [10] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => animation_speed
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 5
                                                                                )

                                                                            [11] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => *
                                                                                    [type:protected] => 8
                                                                                    [lineno:protected] => 5
                                                                                )

                                                                            [12] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 1000
                                                                                    [type:protected] => 6
                                                                                    [lineno:protected] => 5
                                                                                )

                                                                            [13] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 5
                                                                                )

                                                                            [14] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ,
        breakpoint: 
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 5
                                                                                )

                                                                            [15] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 6
                                                                                )

                                                                            [16] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 6
                                                                                )

                                                                            [17] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 6
                                                                                )

                                                                            [18] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => breakpoint
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 6
                                                                                )

                                                                            [19] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 6
                                                                                )

                                                                            [20] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ,
        pushButton: '
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 6
                                                                                )

                                                                            [21] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 7
                                                                                )

                                                                            [22] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 7
                                                                                )

                                                                            [23] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 7
                                                                                )

                                                                            [24] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => button_push_with_animation
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 7
                                                                                )

                                                                            [25] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 7
                                                                                )

                                                                            [26] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ',
        animationType: '
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 7
                                                                                )

                                                                            [27] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 8
                                                                                )

                                                                            [28] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 8
                                                                                )

                                                                            [29] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 8
                                                                                )

                                                                            [30] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => animation_type
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 8
                                                                                )

                                                                            [31] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 8
                                                                                )

                                                                            [32] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ',
        animationSide: '
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 8
                                                                                )

                                                                            [33] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 9
                                                                                )

                                                                            [34] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 9
                                                                                )

                                                                            [35] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 9
                                                                                )

                                                                            [36] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => menu_appear_from
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 9
                                                                                )

                                                                            [37] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 9
                                                                                )

                                                                            [38] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ',
        pageWrapper: '
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 9
                                                                                )

                                                                            [39] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 10
                                                                                )

                                                                            [40] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 10
                                                                                )

                                                                            [41] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 10
                                                                                )

                                                                            [42] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => page_wrapper
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 10
                                                                                )

                                                                            [43] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 10
                                                                                )

                                                                            [44] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ',
        isOpen: false,
        triggerTypes: 'click',
        activeClass: 'is-active',
        container: '#responsive-menu-container',
        openClass: 'responsive-menu-open',
        accordion: '
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 10
                                                                                )

                                                                            [45] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 16
                                                                                )

                                                                            [46] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 16
                                                                                )

                                                                            [47] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 16
                                                                                )

                                                                            [48] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => accordion_animation
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 16
                                                                                )

                                                                            [49] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 16
                                                                                )

                                                                            [50] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ',
        activeArrow: '
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 16
                                                                                )

                                                                            [51] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 17
                                                                                )

                                                                            [52] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 17
                                                                                )

                                                                            [53] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 17
                                                                                )

                                                                            [54] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => getActiveArrow
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 17
                                                                                )

                                                                            [55] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => (
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 17
                                                                                )

                                                                            [56] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => )
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 17
                                                                                )

                                                                            [57] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 17
                                                                                )

                                                                            [58] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ',
        inactiveArrow: '
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 17
                                                                                )

                                                                            [59] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 18
                                                                                )

                                                                            [60] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 18
                                                                                )

                                                                            [61] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 18
                                                                                )

                                                                            [62] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => getInActiveArrow
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 18
                                                                                )

                                                                            [63] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => (
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 18
                                                                                )

                                                                            [64] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => )
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 18
                                                                                )

                                                                            [65] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 18
                                                                                )

                                                                            [66] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ',
        wrapper: '#responsive-menu-wrapper',
        closeOnBodyClick: '
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 18
                                                                                )

                                                                            [67] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 20
                                                                                )

                                                                            [68] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 20
                                                                                )

                                                                            [69] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 20
                                                                                )

                                                                            [70] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => menu_close_on_body_click
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 20
                                                                                )

                                                                            [71] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 20
                                                                                )

                                                                            [72] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ',
        closeOnLinkClick: '
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 20
                                                                                )

                                                                            [73] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 21
                                                                                )

                                                                            [74] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 21
                                                                                )

                                                                            [75] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 21
                                                                                )

                                                                            [76] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => menu_close_on_link_click
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 21
                                                                                )

                                                                            [77] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 21
                                                                                )

                                                                            [78] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ',
        itemTriggerSubMenu: '
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 21
                                                                                )

                                                                            [79] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 22
                                                                                )

                                                                            [80] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 22
                                                                                )

                                                                            [81] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 22
                                                                                )

                                                                            [82] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => menu_item_click_to_trigger_submenu
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 22
                                                                                )

                                                                            [83] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 22
                                                                                )

                                                                            [84] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ',
        linkElement: '.responsive-menu-item-link',
        subMenuTransitionTime: 
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 22
                                                                                )

                                                                            [85] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 2
                                                                                    [lineno:protected] => 24
                                                                                )

                                                                            [86] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => options
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 24
                                                                                )

                                                                            [87] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => .
                                                                                    [type:protected] => 9
                                                                                    [lineno:protected] => 24
                                                                                )

                                                                            [88] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => sub_menu_speed
                                                                                    [type:protected] => 5
                                                                                    [lineno:protected] => 24
                                                                                )

                                                                            [89] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => *
                                                                                    [type:protected] => 8
                                                                                    [lineno:protected] => 24
                                                                                )

                                                                            [90] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 1000
                                                                                    [type:protected] => 6
                                                                                    [lineno:protected] => 24
                                                                                )

                                                                            [91] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => 4
                                                                                    [lineno:protected] => 24
                                                                                )

                                                                            [92] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => ,
        openMenu: function() {
            $(this.trigger).addClass(this.activeClass);
            $('html').addClass(this.openClass);
            $('.responsive-menu-button-icon-active').hide();
            $('.responsive-menu-button-icon-inactive').show();
            this.setButtonTextOpen();
            this.setWrapperTranslate();
            this.isOpen = true;
        },
        closeMenu: function() {
            $(this.trigger).removeClass(this.activeClass);
            $('html').removeClass(this.openClass);
            $('.responsive-menu-button-icon-inactive').hide();
            $('.responsive-menu-button-icon-active').show();
            this.setButtonText();
            this.clearWrapperTranslate();
            this.isOpen = false;
        },
        setButtonText: function() {
            if($('.responsive-menu-button-text-open').length > 0 && $('.responsive-menu-button-text').length > 0) {
                $('.responsive-menu-button-text-open').hide();
                $('.responsive-menu-button-text').show();
            }
        },
        setButtonTextOpen: function() {
            if($('.responsive-menu-button-text').length > 0 && $('.responsive-menu-button-text-open').length > 0) {
                $('.responsive-menu-button-text').hide();
                $('.responsive-menu-button-text-open').show();
            }
        },
        triggerMenu: function() {
            this.isOpen ? this.closeMenu() : this.openMenu();
        },
        triggerSubArrow: function(subarrow) {
            var sub_menu = $(subarrow).parent().siblings('.responsive-menu-submenu');
            var self = this;
            if(this.accordion == 'on') {
                /* Get Top Most Parent and the siblings */
                var top_siblings = sub_menu.parents('.responsive-menu-item-has-children').last().siblings('.responsive-menu-item-has-children');
                var first_siblings = sub_menu.parents('.responsive-menu-item-has-children').first().siblings('.responsive-menu-item-has-children');
                /* Close up just the top level parents to key the rest as it was */
                top_siblings.children('.responsive-menu-submenu').slideUp(self.subMenuTransitionTime, 'linear').removeClass('responsive-menu-submenu-open');
                /* Set each parent arrow to inactive */
                top_siblings.each(function() {
                    $(this).find('.responsive-menu-subarrow').first().html(self.inactiveArrow);
                    $(this).find('.responsive-menu-subarrow').first().removeClass('responsive-menu-subarrow-active');
                });
                /* Now Repeat for the current item siblings */
                first_siblings.children('.responsive-menu-submenu').slideUp(self.subMenuTransitionTime, 'linear').removeClass('responsive-menu-submenu-open');
                first_siblings.each(function() {
                    $(this).find('.responsive-menu-subarrow').first().html(self.inactiveArrow);
                    $(this).find('.responsive-menu-subarrow').first().removeClass('responsive-menu-subarrow-active');
                });
            }
            if(sub_menu.hasClass('responsive-menu-submenu-open')) {
                sub_menu.slideUp(self.subMenuTransitionTime, 'linear').removeClass('responsive-menu-submenu-open');
                $(subarrow).html(this.inactiveArrow);
                $(subarrow).removeClass('responsive-menu-subarrow-active');
            } else {
                sub_menu.slideDown(self.subMenuTransitionTime, 'linear').addClass('responsive-menu-submenu-open');
                $(subarrow).html(this.activeArrow);
                $(subarrow).addClass('responsive-menu-subarrow-active');
            }
        },
        menuHeight: function() {
            return $(this.container).height();
        },
        menuWidth: function() {
            return $(this.container).width();
        },
        wrapperHeight: function() {
            return $(this.wrapper).height();
        },
        setWrapperTranslate: function() {
            switch(this.animationSide) {
                case 'left':
                    translate = 'translateX(' + this.menuWidth() + 'px)'; break;
                case 'right':
                    translate = 'translateX(-' + this.menuWidth() + 'px)'; break;
                case 'top':
                    translate = 'translateY(' + this.wrapperHeight() + 'px)'; break;
                case 'bottom':
                    translate = 'translateY(-' + this.menuHeight() + 'px)'; break;
            }
            if(this.animationType == 'push') {
                $(this.pageWrapper).css({'transform':translate});
                $('html, body').css('overflow-x', 'hidden');
            }
            if(this.pushButton == 'on') {
                $('#responsive-menu-button').css({'transform':translate});
            }
        },
        clearWrapperTranslate: function() {
            var self = this;
            if(this.animationType == 'push') {
                $(this.pageWrapper).css({'transform':''});
                setTimeout(function() {
                    $('html, body').css('overflow-x', '');
                }, self.animationSpeed);
            }
            if(this.pushButton == 'on') {
                $('#responsive-menu-button').css({'transform':''});
            }
        },
        init: function() {
            var self = this;
            $(this.trigger).on(this.triggerTypes, function(e){
                e.stopPropagation();
                self.triggerMenu();
            });
            $(this.trigger).mouseup(function(){
                $(self.trigger).blur();
            });
            $('.responsive-menu-subarrow').on('click', function(e) {
                e.preventDefault();
                e.stopPropagation();
                self.triggerSubArrow(this);
            });
            $(window).resize(function() {
                if($(window).width() > self.breakpoint) {
                    if(self.isOpen){
                        self.closeMenu();
                    }
                } else {
                    if($('.responsive-menu-open').length>0){
                        self.setWrapperTranslate();
                    }
                }
            });
            if(this.closeOnLinkClick == 'on') {
                $(this.linkElement).on('click', function(e) {
                    e.preventDefault();
                    /* Fix for when close menu on parent clicks is on */
                    if(self.itemTriggerSubMenu == 'on' && $(this).is('.responsive-menu-item-has-children > ' + self.linkElement)) {
                        return;
                    }
                    old_href = $(this).attr('href');
                    old_target = typeof $(this).attr('target') == 'undefined' ? '_self' : $(this).attr('target');
                    if(self.isOpen) {
                        if($(e.target).closest('.responsive-menu-subarrow').length) {
                            return;
                        }
                        self.closeMenu();
                        setTimeout(function() {
                            window.open(old_href, old_target);
                        }, self.animationSpeed);
                    }
                });
            }
            if(this.closeOnBodyClick == 'on') {
                $(document).on('click', 'body', function(e) {
                    if(self.isOpen) {
                        if($(e.target).closest('#responsive-menu-container').length || $(e.target).closest('#responsive-menu-button').length) {
                            return;
                        }
                    }
                    self.closeMenu();
                });
            }
            if(this.itemTriggerSubMenu == 'on') {
                $('.responsive-menu-item-has-children > ' + this.linkElement).on('click', function(e) {
                    e.preventDefault();
                    self.triggerSubArrow($(this).children('.responsive-menu-subarrow').first());
                });
            }
        }
    };
    ResponsiveMenu.init();
});
                                                                                    [type:protected] => 0
                                                                                    [lineno:protected] => 24
                                                                                )

                                                                            [93] => Twig_Token Object
                                                                                (
                                                                                    [value:protected] => 
                                                                                    [type:protected] => -1
                                                                                    [lineno:protected] => 24
                                                                                )

                                                                        )

                                                                    [code:protected] => jQuery(document).ready(function($) {

    var ResponsiveMenu = {
        trigger: '{{ options.button_click_trigger }}',
        animationSpeed: {{ options.animation_speed * 1000 }},
        breakpoint: {{ options.breakpoint }},
        pushButton: '{{ options.button_push_with_animation }}',
        animationType: '{{ options.animation_type }}',
        animationSide: '{{ options.menu_appear_from }}',
        pageWrapper: '{{ options.page_wrapper }}',
        isOpen: false,
        triggerTypes: 'click',
        activeClass: 'is-active',
        container: '#responsive-menu-container',
        openClass: 'responsive-menu-open',
        accordion: '{{ options.accordion_animation }}',
        activeArrow: '{{ options.getActiveArrow() }}',
        inactiveArrow: '{{ options.getInActiveArrow() }}',
        wrapper: '#responsive-menu-wrapper',
        closeOnBodyClick: '{{ options.menu_close_on_body_click }}',
        closeOnLinkClick: '{{ options.menu_close_on_link_click }}',
        itemTriggerSubMenu: '{{ options.menu_item_click_to_trigger_submenu }}',
        linkElement: '.responsive-menu-item-link',
        subMenuTransitionTime: {{ options.sub_menu_speed * 1000 }},
        openMenu: function() {
            $(this.trigger).addClass(this.activeClass);
            $('html').addClass(this.openClass);
            $('.responsive-menu-button-icon-active').hide();
            $('.responsive-menu-button-icon-inactive').show();
            this.setButtonTextOpen();
            this.setWrapperTranslate();
            this.isOpen = true;
        },
        closeMenu: function() {
            $(this.trigger).removeClass(this.activeClass);
            $('html').removeClass(this.openClass);
            $('.responsive-menu-button-icon-inactive').hide();
            $('.responsive-menu-button-icon-active').show();
            this.setButtonText();
            this.clearWrapperTranslate();
            this.isOpen = false;
        },
        setButtonText: function() {
            if($('.responsive-menu-button-text-open').length > 0 && $('.responsive-menu-button-text').length > 0) {
                $('.responsive-menu-button-text-open').hide();
                $('.responsive-menu-button-text').show();
            }
        },
        setButtonTextOpen: function() {
            if($('.responsive-menu-button-text').length > 0 && $('.responsive-menu-button-text-open').length > 0) {
                $('.responsive-menu-button-text').hide();
                $('.responsive-menu-button-text-open').show();
            }
        },
        triggerMenu: function() {
            this.isOpen ? this.closeMenu() : this.openMenu();
        },
        triggerSubArrow: function(subarrow) {
            var sub_menu = $(subarrow).parent().siblings('.responsive-menu-submenu');
            var self = this;
            if(this.accordion == 'on') {
                /* Get Top Most Parent and the siblings */
                var top_siblings = sub_menu.parents('.responsive-menu-item-has-children').last().siblings('.responsive-menu-item-has-children');
                var first_siblings = sub_menu.parents('.responsive-menu-item-has-children').first().siblings('.responsive-menu-item-has-children');
                /* Close up just the top level parents to key the rest as it was */
                top_siblings.children('.responsive-menu-submenu').slideUp(self.subMenuTransitionTime, 'linear').removeClass('responsive-menu-submenu-open');
                /* Set each parent arrow to inactive */
                top_siblings.each(function() {
                    $(this).find('.responsive-menu-subarrow').first().html(self.inactiveArrow);
                    $(this).find('.responsive-menu-subarrow').first().removeClass('responsive-menu-subarrow-active');
                });
                /* Now Repeat for the current item siblings */
                first_siblings.children('.responsive-menu-submenu').slideUp(self.subMenuTransitionTime, 'linear').removeClass('responsive-menu-submenu-open');
                first_siblings.each(function() {
                    $(this).find('.responsive-menu-subarrow').first().html(self.inactiveArrow);
                    $(this).find('.responsive-menu-subarrow').first().removeClass('responsive-menu-subarrow-active');
                });
            }
            if(sub_menu.hasClass('responsive-menu-submenu-open')) {
                sub_menu.slideUp(self.subMenuTransitionTime, 'linear').removeClass('responsive-menu-submenu-open');
                $(subarrow).html(this.inactiveArrow);
                $(subarrow).removeClass('responsive-menu-subarrow-active');
            } else {
                sub_menu.slideDown(self.subMenuTransitionTime, 'linear').addClass('responsive-menu-submenu-open');
                $(subarrow).html(this.activeArrow);
                $(subarrow).addClass('responsive-menu-subarrow-active');
            }
        },
        menuHeight: function() {
            return $(this.container).height();
        },
        menuWidth: function() {
            return $(this.container).width();
        },
        wrapperHeight: function() {
            return $(this.wrapper).height();
        },
        setWrapperTranslate: function() {
            switch(this.animationSide) {
                case 'left':
                    translate = 'translateX(' + this.menuWidth() + 'px)'; break;
                case 'right':
                    translate = 'translateX(-' + this.menuWidth() + 'px)'; break;
                case 'top':
                    translate = 'translateY(' + this.wrapperHeight() + 'px)'; break;
                case 'bottom':
                    translate = 'translateY(-' + this.menuHeight() + 'px)'; break;
            }
            if(this.animationType == 'push') {
                $(this.pageWrapper).css({'transform':translate});
                $('html, body').css('overflow-x', 'hidden');
            }
            if(this.pushButton == 'on') {
                $('#responsive-menu-button').css({'transform':translate});
            }
        },
        clearWrapperTranslate: function() {
            var self = this;
            if(this.animationType == 'push') {
                $(this.pageWrapper).css({'transform':''});
                setTimeout(function() {
                    $('html, body').css('overflow-x', '');
                }, self.animationSpeed);
            }
            if(this.pushButton == 'on') {
                $('#responsive-menu-button').css({'transform':''});
            }
        },
        init: function() {
            var self = this;
            $(this.trigger).on(this.triggerTypes, function(e){
                e.stopPropagation();
                self.triggerMenu();
            });
            $(this.trigger).mouseup(function(){
                $(self.trigger).blur();
            });
            $('.responsive-menu-subarrow').on('click', function(e) {
                e.preventDefault();
                e.stopPropagation();
                self.triggerSubArrow(this);
            });
            $(window).resize(function() {
                if($(window).width() > self.breakpoint) {
                    if(self.isOpen){
                        self.closeMenu();
                    }
                } else {
                    if($('.responsive-menu-open').length>0){
                        self.setWrapperTranslate();
                    }
                }
            });
            if(this.closeOnLinkClick == 'on') {
                $(this.linkElement).on('click', function(e) {
                    e.preventDefault();
                    /* Fix for when close menu on parent clicks is on */
                    if(self.itemTriggerSubMenu == 'on' && $(this).is('.responsive-menu-item-has-children > ' + self.linkElement)) {
                        return;
                    }
                    old_href = $(this).attr('href');
                    old_target = typeof $(this).attr('target') == 'undefined' ? '_self' : $(this).attr('target');
                    if(self.isOpen) {
                        if($(e.target).closest('.responsive-menu-subarrow').length) {
                            return;
                        }
                        self.closeMenu();
                        setTimeout(function() {
                            window.open(old_href, old_target);
                        }, self.animationSpeed);
                    }
                });
            }
            if(this.closeOnBodyClick == 'on') {
                $(document).on('click', 'body', function(e) {
                    if(self.isOpen) {
                        if($(e.target).closest('#responsive-menu-container').length || $(e.target).closest('#responsive-menu-button').length) {
                            return;
                        }
                    }
                    self.closeMenu();
                });
            }
            if(this.itemTriggerSubMenu == 'on') {
                $('.responsive-menu-item-has-children > ' + this.linkElement).on('click', function(e) {
                    e.preventDefault();
                    self.triggerSubArrow($(this).children('.responsive-menu-subarrow').first());
                });
            }
        }
    };
    ResponsiveMenu.init();
});
                                                                    [cursor:protected] => 9274
                                                                    [lineno:protected] => 24
                                                                    [end:protected] => 9274
                                                                    [state:protected] => 0
                                                                    [states:protected] => Array
                                                                        (
                                                                        )

                                                                    [brackets:protected] => Array
                                                                        (
                                                                        )

                                                                    [env:protected] => Twig_Environment Object
 *RECURSION*
                                                                    [filename:protected] => js/app.js.twig
                                                                    [options:protected] => Array
                                                                        (
                                                                            [tag_comment] => Array
                                                                                (
                                                                                    [0] => {#
                                                                                    [1] => #}
                                                                                )

                                                                            [tag_block] => Array
                                                                                (
                                                                                    [0] => {%
                                                                                    [1] => %}
                                                                                )

                                                                            [tag_variable] => Array
                                                                                (
                                                                                    [0] => {{
                                                                                    [1] => }}
                                                                                )

                                                                            [whitespace_trim] => -
                                                                            [interpolation] => Array
                                                                                (
                                                                                    [0] => #{
                                                                                    [1] => }
                                                                                )

                                                                        )

                                                                    [regexes:protected] => Array
                                                                        (
                                                                            [lex_var] => /\s*\-\}\}\s*|\s*\}\}/A
                                                                            [lex_block] => /\s*(?:\-%\}\s*|\s*%\})\n?/A
                                                                            [lex_raw_data] => /(\{%\-|\{%)\s*(?:end%s)\s*(?:\-%\}\s*|\s*%\})/s
                                                                            [operator] => /starts\s+with(?=[\s()])|ends\s+with(?=[\s()])|matches(?=[\s()])|not\s+in(?=[\s()])|is\s+not(?=[\s()])|b\-xor(?=[\s()])|b\-and(?=[\s()])|b\-or(?=[\s()])|not(?=[\s()])|and(?=[\s()])|\*\*|is(?=[\s()])|\/\/|\.\.|in(?=[\s()])|\?\?|\\=|\!\=|\=\=|or(?=[\s()])|\>|\ /(?:\-#\}\s*|#\})\n?/s
                                                                            [lex_block_raw] => /\s*(raw|verbatim)\s*(?:\-%\}\s*|\s*%\})/As
                                                                            [lex_block_line] => /\s*line\s+(\d+)\s*%\}/As
                                                                            [lex_tokens_start] => /(\{\{|\{%|\{#)(\-)?/s
                                                                            [interpolation_start] => /#\{\s*/A
                                                                            [interpolation_end] => /\s*\}/A
                                                                        )

                                                                    [position:protected] => 13
                                                                    [positions:protected] => Array
                                                                        (
                                                                            [0] => Array
                                                                                (
                                                                                    [0] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 83
                                                                                        )

                                                                                    [1] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 144
                                                                                        )

                                                                                    [2] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 202
                                                                                        )

                                                                                    [3] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 249
                                                                                        )

                                                                                    [4] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 316
                                                                                        )

                                                                                    [5] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 371
                                                                                        )

                                                                                    [6] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 426
                                                                                        )

                                                                                    [7] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 655
                                                                                        )

                                                                                    [8] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 713
                                                                                        )

                                                                                    [9] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 770
                                                                                        )

                                                                                    [10] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 877
                                                                                        )

                                                                                    [11] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 945
                                                                                        )

                                                                                    [12] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 1015
                                                                                        )

                                                                                    [13] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 1148
                                                                                        )

                                                                                )

                                                                            [1] => Array
                                                                                (
                                                                                    [0] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 83
                                                                                        )

                                                                                    [1] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 144
                                                                                        )

                                                                                    [2] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 202
                                                                                        )

                                                                                    [3] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 249
                                                                                        )

                                                                                    [4] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 316
                                                                                        )

                                                                                    [5] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 371
                                                                                        )

                                                                                    [6] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 426
                                                                                        )

                                                                                    [7] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 655
                                                                                        )

                                                                                    [8] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 713
                                                                                        )

                                                                                    [9] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 770
                                                                                        )

                                                                                    [10] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 877
                                                                                        )

                                                                                    [11] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 945
                                                                                        )

                                                                                    [12] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 1015
                                                                                        )

                                                                                    [13] => Array
                                                                                        (
                                                                                            [0] => {{
                                                                                            [1] => 1148
                                                                                        )

                                                                                )

                                                                            [2] => Array
                                                                                (
                                                                                    [0] => 
                                                                                    [1] => 
                                                                                    [2] => 
                                                                                    [3] => 
                                                                                    [4] => 
                                                                                    [5] => 
                                                                                    [6] => 
                                                                                    [7] => 
                                                                                    [8] => 
                                                                                    [9] => 
                                                                                    [10] => 
                                                                                    [11] => 
                                                                                    [12] => 
                                                                                    [13] => 
                                                                                )

                                                                        )

                                                                    [currentVarBlockLine:protected] => 24
                                                                    [source:Twig_Lexer:private] => Twig_Source Object
                                                                        (
                                                                            [code:Twig_Source:private] => jQuery(document).ready(function($) {

    var ResponsiveMenu = {
        trigger: '{{ options.button_click_trigger }}',
        animationSpeed: {{ options.animation_speed * 1000 }},
        breakpoint: {{ options.breakpoint }},
        pushButton: '{{ options.button_push_with_animation }}',
        animationType: '{{ options.animation_type }}',
        animationSide: '{{ options.menu_appear_from }}',
        pageWrapper: '{{ options.page_wrapper }}',
        isOpen: false,
        triggerTypes: 'click',
        activeClass: 'is-active',
        container: '#responsive-menu-container',
        openClass: 'responsive-menu-open',
        accordion: '{{ options.accordion_animation }}',
        activeArrow: '{{ options.getActiveArrow() }}',
        inactiveArrow: '{{ options.getInActiveArrow() }}',
        wrapper: '#responsive-menu-wrapper',
        closeOnBodyClick: '{{ options.menu_close_on_body_click }}',
        closeOnLinkClick: '{{ options.menu_close_on_link_click }}',
        itemTriggerSubMenu: '{{ options.menu_item_click_to_trigger_submenu }}',
        linkElement: '.responsive-menu-item-link',
        subMenuTransitionTime: {{ options.sub_menu_speed * 1000 }},
        openMenu: function() {
            $(this.trigger).addClass(this.activeClass);
            $('html').addClass(this.openClass);
            $('.responsive-menu-button-icon-active').hide();
            $('.responsive-menu-button-icon-inactive').show();
            this.setButtonTextOpen();
            this.setWrapperTranslate();
            this.isOpen = true;
        },
        closeMenu: function() {
            $(this.trigger).removeClass(this.activeClass);
            $('html').removeClass(this.openClass);
            $('.responsive-menu-button-icon-inactive').hide();
            $('.responsive-menu-button-icon-active').show();
            this.setButtonText();
            this.clearWrapperTranslate();
            this.isOpen = false;
        },
        setButtonText: function() {
            if($('.responsive-menu-button-text-open').length > 0 && $('.responsive-menu-button-text').length > 0) {
                $('.responsive-menu-button-text-open').hide();
                $('.responsive-menu-button-text').show();
            }
        },
        setButtonTextOpen: function() {
            if($('.responsive-menu-button-text').length > 0 && $('.responsive-menu-button-text-open').length > 0) {
                $('.responsive-menu-button-text').hide();
                $('.responsive-menu-button-text-open').show();
            }
        },
        triggerMenu: function() {
            this.isOpen ? this.closeMenu() : this.openMenu();
        },
        triggerSubArrow: function(subarrow) {
            var sub_menu = $(subarrow).parent().siblings('.responsive-menu-submenu');
            var self = this;
            if(this.accordion == 'on') {
                /* Get Top Most Parent and the siblings */
                var top_siblings = sub_menu.parents('.responsive-menu-item-has-children').last().siblings('.responsive-menu-item-has-children');
                var first_siblings = sub_menu.parents('.responsive-menu-item-has-children').first().siblings('.responsive-menu-item-has-children');
                /* Close up just the top level parents to key the rest as it was */
                top_siblings.children('.responsive-menu-submenu').slideUp(self.subMenuTransitionTime, 'linear').removeClass('responsive-menu-submenu-open');
                /* Set each parent arrow to inactive */
                top_siblings.each(function() {
                    $(this).find('.responsive-menu-subarrow').first().html(self.inactiveArrow);
                    $(this).find('.responsive-menu-subarrow').first().removeClass('responsive-menu-subarrow-active');
                });
                /* Now Repeat for the current item siblings */
                first_siblings.children('.responsive-menu-submenu').slideUp(self.subMenuTransitionTime, 'linear').removeClass('responsive-menu-submenu-open');
                first_siblings.each(function() {
                    $(this).find('.responsive-menu-subarrow').first().html(self.inactiveArrow);
                    $(this).find('.responsive-menu-subarrow').first().removeClass('responsive-menu-subarrow-active');
                });
            }
            if(sub_menu.hasClass('responsive-menu-submenu-open')) {
                sub_menu.slideUp(self.subMenuTransitionTime, 'linear').removeClass('responsive-menu-submenu-open');
                $(subarrow).html(this.inactiveArrow);
                $(subarrow).removeClass('responsive-menu-subarrow-active');
            } else {
                sub_menu.slideDown(self.subMenuTransitionTime, 'linear').addClass('responsive-menu-submenu-open');
                $(subarrow).html(this.activeArrow);
                $(subarrow).addClass('responsive-menu-subarrow-active');
            }
        },
        menuHeight: function() {
            return $(this.container).height();
        },
        menuWidth: function() {
            return $(this.container).width();
        },
        wrapperHeight: function() {
            return $(this.wrapper).height();
        },
        setWrapperTranslate: function() {
            switch(this.animationSide) {
                case 'left':
                    translate = 'translateX(' + this.menuWidth() + 'px)'; break;
                case 'right':
                    translate = 'translateX(-' + this.menuWidth() + 'px)'; break;
                case 'top':
                    translate = 'translateY(' + this.wrapperHeight() + 'px)'; break;
                case 'bottom':
                    translate = 'translateY(-' + this.menuHeight() + 'px)'; break;
            }
            if(this.animationType == 'push') {
                $(this.pageWrapper).css({'transform':translate});
                $('html, body').css('overflow-x', 'hidden');
            }
            if(this.pushButton == 'on') {
                $('#responsive-menu-button').css({'transform':translate});
            }
        },
        clearWrapperTranslate: function() {
            var self = this;
            if(this.animationType == 'push') {
                $(this.pageWrapper).css({'transform':''});
                setTimeout(function() {
                    $('html, body').css('overflow-x', '');
                }, self.animationSpeed);
            }
            if(this.pushButton == 'on') {
                $('#responsive-menu-button').css({'transform':''});
            }
        },
        init: function() {
            var self = this;
            $(this.trigger).on(this.triggerTypes, function(e){
                e.stopPropagation();
                self.triggerMenu();
            });
            $(this.trigger).mouseup(function(){
                $(self.trigger).blur();
            });
            $('.responsive-menu-subarrow').on('click', function(e) {
                e.preventDefault();
                e.stopPropagation();
                self.triggerSubArrow(this);
            });
            $(window).resize(function() {
                if($(window).width() > self.breakpoint) {
                    if(self.isOpen){
                        self.closeMenu();
                    }
                } else {
                    if($('.responsive-menu-open').length>0){
                        self.setWrapperTranslate();
                    }
                }
            });
            if(this.closeOnLinkClick == 'on') {
                $(this.linkElement).on('click', function(e) {
                    e.preventDefault();
                    /* Fix for when close menu on parent clicks is on */
                    if(self.itemTriggerSubMenu == 'on' && $(this).is('.responsive-menu-item-has-children > ' + self.linkElement)) {
                        return;
                    }
                    old_href = $(this).attr('href');
                    old_target = typeof $(this).attr('target') == 'undefined' ? '_self' : $(this).attr('target');
                    if(self.isOpen) {
                        if($(e.target).closest('.responsive-menu-subarrow').length) {
                            return;
                        }
                        self.closeMenu();
                        setTimeout(function() {
                            window.open(old_href, old_target);
                        }, self.animationSpeed);
                    }
                });
            }
            if(this.closeOnBodyClick == 'on') {
                $(document).on('click', 'body', function(e) {
                    if(self.isOpen) {
                        if($(e.target).closest('#responsive-menu-container').length || $(e.target).closest('#responsive-menu-button').length) {
                            return;
                        }
                    }
                    self.closeMenu();
                });
            }
            if(this.itemTriggerSubMenu == 'on') {
                $('.responsive-menu-item-has-children > ' + this.linkElement).on('click', function(e) {
                    e.preventDefault();
                    self.triggerSubArrow($(this).children('.responsive-menu-subarrow').first());
                });
            }
        }
    };
    ResponsiveMenu.init();
});
                                                                            [name:Twig_Source:private] => js/app.js.twig
                                                                            [path:Twig_Source:private] => /home/shop-stars/whitewood-hp.com/public_html/web-tips/wp-content/plugins/responsive-menu/public/js/app.js.twig
                                                                        )

                                                                )

                                                            [parser:protected] => Twig_Parser Object
                                                                (
                                                                    [stack:protected] => Array
                                                                        (
                                                                        )

                                                                    [stream:protected] => 
                                                                    [parent:protected] => 
                                                                    [handlers:protected] => Twig_TokenParserBroker Object
                                                                        (
                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                            [parsers:protected] => Array
                                                                                (
                                                                                    [for] => Twig_TokenParser_For Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [if] => Twig_TokenParser_If Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [extends] => Twig_TokenParser_Extends Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [include] => Twig_TokenParser_Include Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [block] => Twig_TokenParser_Block Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [use] => Twig_TokenParser_Use Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [filter] => Twig_TokenParser_Filter Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [macro] => Twig_TokenParser_Macro Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [import] => Twig_TokenParser_Import Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [from] => Twig_TokenParser_From Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [set] => Twig_TokenParser_Set Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [spaceless] => Twig_TokenParser_Spaceless Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [flush] => Twig_TokenParser_Flush Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [do] => Twig_TokenParser_Do Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [embed] => Twig_TokenParser_Embed Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [with] => Twig_TokenParser_With Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                    [autoescape] => Twig_TokenParser_AutoEscape Object
                                                                                        (
                                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                                        )

                                                                                )

                                                                            [brokers:protected] => Array
                                                                                (
                                                                                )

                                                                        )

                                                                    [visitors:protected] => Array
                                                                        (
                                                                            [0] => Twig_NodeVisitor_Escaper Object
                                                                                (
                                                                                    [statusStack:protected] => Array
                                                                                        (
                                                                                        )

                                                                                    [blocks:protected] => Array
                                                                                        (
                                                                                        )

                                                                                    [safeAnalysis:protected] => Twig_NodeVisitor_SafeAnalysis Object
                                                                                        (
                                                                                            [data:protected] => Array
                                                                                                (
                                                                                                )

                                                                                            [safeVars:protected] => Array
                                                                                                (
                                                                                                )

                                                                                        )

                                                                                    [traverser:protected] => 
                                                                                    [defaultStrategy:protected] => 
                                                                                    [safeVars:protected] => Array
                                                                                        (
                                                                                        )

                                                                                )

                                                                            [1] => Twig_NodeVisitor_Optimizer Object
                                                                                (
                                                                                    [loops:protected] => Array
                                                                                        (
                                                                                        )

                                                                                    [loopsTargets:protected] => Array
                                                                                        (
                                                                                        )

                                                                                    [optimizers:protected] => -1
                                                                                    [prependedNodes:protected] => Array
                                                                                        (
                                                                                        )

                                                                                    [inABody:protected] => 
                                                                                )

                                                                        )

                                                                    [expressionParser:protected] => Twig_ExpressionParser Object
                                                                        (
                                                                            [parser:protected] => Twig_Parser Object
 *RECURSION*
                                                                            [unaryOperators:protected] => Array
                                                                                (
                                                                                    [not] => Array
                                                                                        (
                                                                                            [precedence] => 50
                                                                                            [class] => Twig_Node_Expression_Unary_Not
                                                                                        )

                                                                                    [-] => Array
                                                                                        (
                                                                                            [precedence] => 500
                                                                                            [class] => Twig_Node_Expression_Unary_Neg
                                                                                        )

                                                                                    [+] => Array
                                                                                        (
                                                                                            [precedence] => 500
                                                                                            [class] => Twig_Node_Expression_Unary_Pos
                                                                                        )

                                                                                )

                                                                            [binaryOperators:protected] => Array
                                                                                (
                                                                                    [or] => Array
                                                                                        (
                                                                                            [precedence] => 10
                                                                                            [class] => Twig_Node_Expression_Binary_Or
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [and] => Array
                                                                                        (
                                                                                            [precedence] => 15
                                                                                            [class] => Twig_Node_Expression_Binary_And
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [b-or] => Array
                                                                                        (
                                                                                            [precedence] => 16
                                                                                            [class] => Twig_Node_Expression_Binary_BitwiseOr
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [b-xor] => Array
                                                                                        (
                                                                                            [precedence] => 17
                                                                                            [class] => Twig_Node_Expression_Binary_BitwiseXor
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [b-and] => Array
                                                                                        (
                                                                                            [precedence] => 18
                                                                                            [class] => Twig_Node_Expression_Binary_BitwiseAnd
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [==] => Array
                                                                                        (
                                                                                            [precedence] => 20
                                                                                            [class] => Twig_Node_Expression_Binary_Equal
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [!=] => Array
                                                                                        (
                                                                                            [precedence] => 20
                                                                                            [class] => Twig_Node_Expression_Binary_NotEqual
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [ Array
                                                                                        (
                                                                                            [precedence] => 20
                                                                                            [class] => Twig_Node_Expression_Binary_Less
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [>] => Array
                                                                                        (
                                                                                            [precedence] => 20
                                                                                            [class] => Twig_Node_Expression_Binary_Greater
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [>=] => Array
                                                                                        (
                                                                                            [precedence] => 20
                                                                                            [class] => Twig_Node_Expression_Binary_GreaterEqual
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [ Array
                                                                                        (
                                                                                            [precedence] => 20
                                                                                            [class] => Twig_Node_Expression_Binary_LessEqual
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [not in] => Array
                                                                                        (
                                                                                            [precedence] => 20
                                                                                            [class] => Twig_Node_Expression_Binary_NotIn
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [in] => Array
                                                                                        (
                                                                                            [precedence] => 20
                                                                                            [class] => Twig_Node_Expression_Binary_In
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [matches] => Array
                                                                                        (
                                                                                            [precedence] => 20
                                                                                            [class] => Twig_Node_Expression_Binary_Matches
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [starts with] => Array
                                                                                        (
                                                                                            [precedence] => 20
                                                                                            [class] => Twig_Node_Expression_Binary_StartsWith
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [ends with] => Array
                                                                                        (
                                                                                            [precedence] => 20
                                                                                            [class] => Twig_Node_Expression_Binary_EndsWith
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [..] => Array
                                                                                        (
                                                                                            [precedence] => 25
                                                                                            [class] => Twig_Node_Expression_Binary_Range
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [+] => Array
                                                                                        (
                                                                                            [precedence] => 30
                                                                                            [class] => Twig_Node_Expression_Binary_Add
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [-] => Array
                                                                                        (
                                                                                            [precedence] => 30
                                                                                            [class] => Twig_Node_Expression_Binary_Sub
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [~] => Array
                                                                                        (
                                                                                            [precedence] => 40
                                                                                            [class] => Twig_Node_Expression_Binary_Concat
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [*] => Array
                                                                                        (
                                                                                            [precedence] => 60
                                                                                            [class] => Twig_Node_Expression_Binary_Mul
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [/] => Array
                                                                                        (
                                                                                            [precedence] => 60
                                                                                            [class] => Twig_Node_Expression_Binary_Div
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [//] => Array
                                                                                        (
                                                                                            [precedence] => 60
                                                                                            [class] => Twig_Node_Expression_Binary_FloorDiv
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [%] => Array
                                                                                        (
                                                                                            [precedence] => 60
                                                                                            [class] => Twig_Node_Expression_Binary_Mod
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [is] => Array
                                                                                        (
                                                                                            [precedence] => 100
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [is not] => Array
                                                                                        (
                                                                                            [precedence] => 100
                                                                                            [associativity] => 1
                                                                                        )

                                                                                    [**] => Array
                                                                                        (
                                                                                            [precedence] => 200
                                                                                            [class] => Twig_Node_Expression_Binary_Power
                                                                                            [associativity] => 2
                                                                                        )

                                                                                    [??] => Array
                                                                                        (
                                                                                            [precedence] => 300
                                                                                            [class] => Twig_Node_Expression_NullCoalesce
                                                                                            [associativity] => 2
                                                                                        )

                                                                                )

                                                                            [env:Twig_ExpressionParser:private] => Twig_Environment Object
 *RECURSION*
                                                                        )

                                                                    [blocks:protected] => 
                                                                    [blockStack:protected] => 
                                                                    [macros:protected] => 
                                                                    [env:protected] => Twig_Environment Object
 *RECURSION*
                                                                    [reservedMacroNames:protected] => 
                                                                    [importedSymbols:protected] => 
                                                                    [traits:protected] => 
                                                                    [embeddedTemplates:protected] => Array
                                                                        (
                                                                        )

                                                                )

                                                            [compiler:protected] => Twig_Compiler Object
                                                                (
                                                                    [lastLine:protected] => 24
                                                                    [source:protected] => 

最後に

私個人的には、フックでハマりそうになった時に、頭の中を整理するのに結構重宝しています。

ちなみにadd_filterとかする時にfunctionに名前を付けていないと(無名関数を使用している場合)、関数名の部分がClosure Objectとなると思います。

それと、詳細の方の話ですが、wp_headとかを出力するとHTMLコード(リンクなど)とかも入ってきて、テストページで表示するのに邪魔なのでstrip_tags()で除去してしまっています。厳密に言うとそのまま表示していません。

また、大量に関数が登録されているフックを表示した場合、目次系などのプラグインがメモリ不足になってエラーを出す場合があります。この場合はいったんプラグインを止めてご使用ください。

One Reply to “ワードプレスで指定のフックにフックされた関数を手軽に調べる方法”

Comments are closed for this post.

関連のある記事

ワードプレスで選択したカテゴリーが動いてしまって見づらい時の対処法

ワードプレスで選択したカテゴリーが動いてしまって見づらい時の対処法

記事を読む

ワードプレスのフックとは何?アクション/フィルターフックの基本を理解する

ワードプレスのフックとは何?アクション/フィルターフックの基本を理解する

記事を読む

コンタクトフォーム7でreCAPTCHA V3を導入する方法

コンタクトフォーム7でreCAPTCHA V3を導入する方法

記事を読む

ACFのカスタムフィールドをクイック編集できるプラグイン「ACF Quick Edit Fields」

ACFのカスタムフィールドをクイック編集できるプラグイン「ACF Quick Edit Fields」

記事を読む

ワードプレスで選択した特定の記事を表示する一番(?)簡単な方法

ワードプレスで選択した特定の記事を表示する一番(?)簡単な方法

記事を読む

WP_Queryを使用して作った一覧ページに前後or番号付きページャーを付ける方法

WP_Queryを使用して作った一覧ページに前後or番号付きページャーを付ける方法

記事を読む


目次へ
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages