Shortcode Configure

Shortcode Configure

Let’s open themename/wpsf-framework/config/shortcode.config.php all examples there

also you can use override method for config. see override

.
├── themename
|   ├── wpsf-framework
|   |   ├── config
|   |   |   ├── shortcode.config.php

take a look shortcode.config.php example

if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
/**
 *
 * WPSFFramework Shortcode Config
 *
 * @since 1.0
 * @version 1.0
 *
 */
$shortcodes       = array();

$shortcodes[]     = array(
  'name'          => 'group_1',
  'title'         => 'Group #1',
  'shortcodes'    => array(

    array(
      'name'      => 'wpsf_toggle',
      'title'     => 'Toggle',
      'fields'    => array(
        array(
          'id'    => 'title',
          'type'  => 'text',
          'title' => 'Title',
          'help'  => 'Reference site about Lorem Ipsum.',
        ),
        array(
          'id'    => 'content',
          'type'  => 'textarea',
          'title' => 'Content',
        )
      ),
    ),

  )
);

WPSFFramework_Shortcode_Manager::instance( $shortcodes );

Last updated