関数
Master::getFilterableValues()
フィルタリング可能なテキスト/css/表示の値の配列を返す
戻り値 戻り値
ファイル: src/Master.php
public static function getFilterableValues() { $theme = self::getThemeConfig(); /** * Filters the default batch button text displayed on both cart and wishlist pages * * @important * @param string $text button text */ $batchButtonText = apply_filters('wcexwl_filter_batch_button_text', __('GO!', 'wcexwl')); return [ /** * Filters the default primary button class * * Primary buttons are used for the 'Add to ...' buttons and batch buttons on the cart and * wishlist page * * @important * @param string $class class name */ 'btnprimary' => apply_filters('wcexwl_filter_primary_button_class', $theme['btnprimary']), /** * Filters the default secondary button class * * The secondary button is used for the 'Add to Wishlist' button on the item page * * @important * @param string $class class name */ 'btnsecondary' => apply_filters('wcexwl_filter_secondary_button_class', $theme['btnsecondary']), /** * Filters the 'Add to Cart' text displayed in the batch dropdown select menu on the wishlist page * * @important * @param string $text select text */ 'toCartSelectText' => apply_filters('wcexwl_filter_wlpage_dropdown_to_cart_text', __('To Cart', 'wcexwl')), /** * Filters the 'Add to Wishlist' text displayed in the batch dropdown select menu on the cart page * * @important * @param string $text select text */ 'toWishlistSelectText' => apply_filters('wcexwl_filter_cart_dropdown_to_wishlist_text', __('To Wishlist', 'wcexwl')), /** * Filters the 'Delete' text displayed in the batch dropdown select menu on the cart page and wishlist page * * @important * @param string $text select text */ 'deleteSelectText' => apply_filters('wcexwl_filter_batch_dropdown_delete_items_text', __('delete', 'wcexwl')), /** * Filters the '-- Select --' text displayed in the batch dropdown select menu on the cart page and * wishlist page * * @important * @param string $text select text */ 'selectText' => apply_filters('wcexwl_filter_batch_dropdown_select_text', __('select', 'wcexwl')), /** * Filters the default batch button text displayed on the wishlist page * * @important * @param string $text button text */ 'wishlistBatchButtonText' => apply_filters('wcexwl_filter_wishlist_batch_button_text', $batchButtonText), /** * Filters the default batch button text displayed on the cart page * * @important * @param string $text button text */ 'cartBatchButtonText' => apply_filters('wcexwl_filter_cart_batch_button_text', $batchButtonText), /** * Filters the 'Items were added' text displayed in the snackbar alert * * @important * @param string $text */ 'itemsAddedText' => apply_filters('wcexwl_filter_snackbar_items_added_text', __('Item(s) were added.', 'wcexwl')), /** * Filters the 'Items Deleted' text displayed in the snackbar alert * * @important * @param string $text */ 'itemsDeletedText' => apply_filters('wcexwl_filter_snackbar_items_deleted_text', __('Items Deleted', 'wcexwl')), /** * Filters the 'See Cart' URL text displayed in the snackbar alert * * @important * @param string $text */ 'toCartUrlText' => apply_filters('wcexwl_filter_snackbar_to_cart_url_text', __('See Cart', 'wcexwl')), /** * Filters the 'See List' URL text displayed in the snackbar alert * * @important * @param string $text */ 'toWishlistUrlText' => apply_filters('wcexwl_filter_snackbar_to_wishlist_url_text', __('See List', 'wcexwl')), /** * Filters the HEX color of the success icon displayed in the snackbar alert * * RGB css values are also valid * * @important * @param string $hexcolor */ 'sbSuccessIconColor' => apply_filters('wcexwl_filter_snackbar_success_icon_color', '#33da3a'), /** * Filters the 'Please select an option.' text displayed in the snackbar alert * * @important * @param string $text */ 'batchNoActionText' => apply_filters('wcexwl_filter_batch_action_none_selected_text', __('Please select an option.', 'wcexwl')), /** * Filters the 'Please select an option.' text displayed in the snackbar alert on the wishlist page * * @important * @param string $text */ 'wtocNoneCheckedText' => apply_filters('wcexwl_filter_to_cart_none_checked_text', __('Please check at least one item to add to your cart.', 'wcexwl')), /** * Filters the 'Please select an option.' text displayed in the snackbar alert on the cart page * * @important * @param string $text */ 'ctowNoneCheckedText' => apply_filters('wcexwl_filter_to_wishlist_none_checked_text', __('Please check at least one item to add to your wishlist.', 'wcexwl')), /** * Filters the 'Please check at least one item to delete.' text displayed in the snackbar alert * * @important * @param string $text */ 'deleteNoneCheckedText' => apply_filters('wcexwl_filter_delete_items_none_checked_text', __('Please check at least one item to delete.', 'wcexwl')), /** * Filters the 'Your wishlist is currently empty.' text displayed on the wishlist page when no * items exist in the wishlist * * @important * @param string $text */ 'emptyWishlistMessage' => apply_filters('wcexwl_filter_empty_wishlist_message', __('Your wishlist is currently empty.', 'wcexwl')), /** * Filters the 'Add To Wishlist' button text displayed on the item page * * @important * @param string $text button text */ 'addToWishlistButtonText' => apply_filters('wcexwl_filter_item_page_wishlist_button_text', __('Add To Wishlist', 'wcexwl')), /** * Filters the message shown to a user who tries to add an item to their wishlist while logged out * * @important * @param string $text */ 'loginRequiredMessage' => apply_filters('wcexwl_filter_login_required_message', __('You must be logged in to add items to a wishlist.', 'wcexwl')), ]; }