wpsl_frontend_meta_fields

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

Description

This filter allows you to include additional meta data in the JSON response on the front end.

Parameters

$store_fields - (array) The fields that hold the existing store data.

Usage

This example shows how to make data from the wpsl_my_textinput meta field accessible in the JSON response under the my_textinput key.

The part after wpsl_ in the $store_fields key has to match with the name of a meta box field.

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.