wpsl_cpt_info_window_meta_fields

  1. Description
  2. Parameters
  3. Usage
  4. Changelog
  5. Source File
  6. Related

Description

This filter allows you to customize which store meta fields are available in the info window template on individual store pages.

Parameters

$meta_fields - (array) The current meta fields.

$store_id - (integer) The id of the current store.

Usage

In this example the value of the “wpsl_my_textinput”¬†post meta field is added to the available meta fields under the “my_textinput” key:

Changelog

Since 2.0

Source File

This filter is located in /frontend/class-frontend.php.

Placement

The code needs to be placed in the functions.php file inside your active theme folder.