Filters

templates/ywcmap-myaccount-menu.php

yith_wcmap_user_name_in_menu

Filters the username in the menu

Params
 string  $username     Username to display.
 WP_User $current_user User object.

Return string

templates/ywcmap-myaccount-menu-item.php

yith_wcmap_endpoint_anchor_tag_class

Filters the CSS class of the endpoint link

Params
 string $css_class CSS class.

Return string

yith_wcmap_endpoint_anchor_url

Filters the URL of the endpoint link

Params
 string $url      Endpoint URL.
 string $endpoint Endpoint key.

Return string

plugin-options/items-options-fields.php

yith_wcmap_items_options_fields

Filters the fields for the new items in the plugin panel (endpoints, groups, links)

Params
 array $fields Fields.

Return array

plugin-options/settings/style-options.php

yith_wcmap_panel_style_options

Filters the options available in the Style Options tab

Params
 array $style_options Array with options.

Return array

plugin-options/settings/security-options.php

yith_wcmap_panel_security_options

Filters the options available in the Security Options tab

Params
 array $security_options Array with options.

Return array

plugin-options/settings/general-options.php

yith_wcmap_panel_general_options

Filters the options available in the General Settings tab

Params
 array $general_options Array with options.

Return array

includes/yith-wcmap-functions.php

yith_wcmap_get_default_endpoint_options

Filters the default options for new endpoints

Params
 array  $options  Endpoint options.
 string $endpoint Endpoint key.

Return array

yith_wcmap_get_current_endpoint

Filters the current active endpoint

Params
 string $current Current endpoint key.

Return string

yith_wcmap_endpoints_list

Filters the endpoints list

Params
 array $endpoints Endpoints list.
 array $fields    Endpoints options.

Return array

yith_wcmap_get_endpoint_by_accepted_key

Filters the keys to get endpoints by

Params
 array $accepted_keys Accepted keys to get endpoints.

Return array

yith_wcmap_get_endpoint_by

Filters the endpoint retrieved by a specific key

Params
 array  $endpoint Endpoint retrieved.
 string $value    Endpoint key.
 string $key      Key used to get endpoint.
 array  $items    Endpoints.

Return array

includes/class-yith-wcmap.php

yith_wcmap_is_admin_request

Filter whether the current request has been made for an admin page

Params
 bool $is_admin Whether the current request has been made for an admin page or not.

Return bool

includes/class-yith-wcmap-security.php

ywcmap_skip_verification

Filters whether to skip the account verification

Params
 string $skip_verification Whether to skip account verification or not. Possible values: 'yes' or 'no' (default).
 int    $customer_id       Customer ID.

Return string

yith_wcmap_get_notice_message_$context

Filters the notice message based on the context.
$context will be replaced with the message context

Params
 string $msg Message.

Return string

includes/class-yith-wcmap-items.php

yith_wcmap_get_items

Filters the items

Params
 array $items Items.

Return array

yith_wcmap_get_default_items

Filters the default items

Params
 array $default_items Default items.

Return array

yith_wcmap_get_plugins_items

Filters the plugins items

Params
 array $plugins_items Plugins items.

Return array

yith_wcmap_get_items_types

Filters the item types

Params
 array $item_types Item types.

Return array

yith_wcmap_get_before_initialization

Filters the items before initialization

Params
 array $items Items.

Return array

yith_wcmap_skip_add_rewrite_endpoint

Filters whether to skip rewriting endpoint

Params
 bool   $skip_add_rewrite_endpoint Whether to skip rewriting endpoint or not.
 string $key                       Endpoint key.

Return bool

includes/class-yith-wcmap-frontend.php

yith_wcmap_menu_items_initialized

Filters the menu items

Params
 array $menu_items Menu items.

Return array

yith_wcmap_is_menu_item_visible

Filters whether the menu item is visible

Params
 bool   $visible Whether the menu item is visible or not.
 string $item    Item key.
 array  $options Item options.

Return bool

yith_wcmap_my_account_have_menu

Filters whether the My Account page has menu

Params
 bool $my_account_have_menu Whether the My Account page has menu or not.

Return bool

yith_wcmap_wpautop_content

Filters whether to replace double line breaks with paragraph elements in the endpoint content

Params
 bool  $wpautop_content Whether to replace double line breaks with paragraph elements or not.
 array $endpoint        Endpoint.

Return bool

yith_wcmap_endpoint_content

Filters the endpoint content

Params
 string $content   Endpoint content.
 array  $endpoint  Endpoint.
 WP_User $customer User object.

Return string

yith_wcmap_account_page_title

Filters the title of the My Account page

Params
 string $page_title Page title.
 array  $endpoint   Endpoint.

Return string

yith_wcmap_custom_css_variables

Filters the custom CSS variables

Params
 array $variables Custom CSS variables.

Return array

yith_wcmap_get_custom_css

Filters the custom CSS rules

Params
 string $inline_css Custom CSS rules.

Return string

yith_wcmap_is_my_account_page

Filters whether the current page is the My Account page

Params
 bool $is_myaccount Whether is the My Account page or not.

Return bool

yith_wcmap_myaccount_menu_template_args

Filters the array with the arguments needed for the menu template

Params
 array $args Array with arguments.

Return array

yith_wcmap_downloads_shortcode_template

Filters the template name for the Downloads endpoint

Params
 string $template_name Template name.

Return string

yith_wcmap_dashboard_shortcode_template

Filters the template name for the Dashboard endpoint

Params
 string $template_name Template name.

Return string

yith_wcmap_endpoint_menu_class

Filters the CSS classes for the endpoint in the menu

Params
 array  $classes  CSS classes.
 string $item    Item key.
 array  $options Item options.

Return array

yith_wcmap_print_single_endpoint_args

Filters the array of arguments needed to print the endpoint

Params
 array  $args    Array of arguments.
 string $item    Item key.
 array  $options Item options.

Return array

includes/class-yith-wcmap-frontend-extended.php

yith_wcmap_enable_ajax_navigation_scroll

Filters whether to enable the scroll in the Ajax navigation

Params
 bool $enable_ajax_navigation_scroll Whether to enable the scroll in the Ajax navigation or not.

Return bool

yith_wcmap_main_content_selector

Filters the main content selector in the My Account page

Params
 string $main_content_selector Main content selector.

Return string

includes/class-yith-wcmap-extended.php

yith_wcmap_get_plugins_endpoints_array

Filters the compatible plugins

Params
 array $plugins Compatible plugins.

Return array

includes/email/class-yith-wcmap-verify-account.php

yith_wcmap_verify_account_email_attr

Filters the array with the attributes needed for the email template

Params
 array $atts Array of attributes.

Return array

yith_wcmap_email_verify_account_url

Filters the URL to verify the account

Params
 string $url URL to verify the account.

Return string

yith_wcmap_verify_account_email_plain_attr

Filters the array with the attributes needed for the plain email template

Params
 array $atts Array of attributes.

Return array

includes/admin/class-yith-wcmap-admin.php

yith_wcmap_admin_tabs

Filter the available tabs in the plugin panel

Params
 array $tabs Admin tabs.

Return array

yith_wcmap_admin_panel_args

Filters the array with the arguments to build the plugin panel

Params
 array $args Array of arguments.

Return array

yith_wcmap_admin_endpoints_template

Filters the array with the arguments to print the endpoints in the plugin panel

Params
 array Array of arguments.

Return array

yith_wcmap_disable_filter_media_library

Filters whether to disable filtering the media library

Params
 bool $disable_filter_media_library Whether to disable filtering the media library or not.

Return bool

includes/admin/class-yith-wcmap-admin-extended.php

yith_wcmap_admin_panel_args

Filters the array with the arguments to build the plugin panel

Params
 array $args Array of arguments.

Return array

Actions

templates/ywcmap-myaccount-menu.php

yith_wcmap_before_endpoints_menu

Allows to render some content before the endpoints menu



yith_wcmap_before_endpoints_items

Allows to render some content before the endpoints items



yith_wcmap_print_endpoints_group

Allows to render some content when printing the endpoints group

Params
 string $endpoint Endpoint key.
 array  $options  Endpoint options.

yith_wcmap_print_single_endpoint

Allows to render some content when printing the endpoints

Params
 string $endpoint Endpoint key.
 array  $options  Endpoint options.

yith_wcmap_after_endpoints_items

Allows to render some content after the endpoints items



yith_wcmap_after_endpoints_menu

Allows to render some content after the endpoints menu



includes/class-yith-wcmap-security.php

yith_wcmap_after_verify_account_email

Allows to trigger some action after sending email to verify the account



includes/email/class-yith-wcmap-verify-account.php

yith_wcmap_verify_account_sent_correctly

Allows to trigger some action when the email to verify the account has been sent correctly

Params
 int $customer_id Customer ID.

yith_wcmap_verify_account_sent_error

Allows to trigger some action when the email to verify the account has not been sent correctly

Params
 int $customer_id Customer ID.

includes/admin/views/single-item.php

yith_wcmap_admin_before_single_item_content

Allows to render some content before the item in the plugin panel

Params
 string $item_key Item key.
 array  $options  Item options
 string $type     Item type.