wpsl_store_meta

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

Description

This filter allows you to include additional data after the existing meta data from the “Store Details” section is collected.

Parameters

$store_meta - (array) The existing store meta data.

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

Usage

add_filter( 'wpsl_store_meta', 'custom_store_meta', 10, 2 );

function custom_store_meta( $store_meta, $store_id ) {
    
    $store_meta['extra_data'] = 'your extra data';
    
    return $store_meta;
}

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.