Installation

Include In Theme

Download zip file from github repository

  • Extract download zip on themename/wpsf-framework folder under your theme directory

  • Add framework include code on your theme themename/functions.php file

  • Yay! Right now you are ready to configure framework, metaboxes, taxonomies, wp customize, shortcoder

  • Take a look for config files from themename/wpsf-framework/config folder

  • Read for about configuration

Folder Stucture

├── wp-content
|   ├── themes
|   |   ├── themename
|   |   ├── functions.php
|   |   ├── ...
|   |   ├── ...

This is not meant replace your main functions.php, only put this code below your codes

/**
 * WPSFramework
 * A Lightweight and easy-to-use WordPress Options Framework
 */
require_once get_template_directory_uri() .'/wpsf-framework/wpsf-framework.php';

// -( or )-
// require_once get_template_directory_uri() .'/subfolder/wpsf-framework/wpsf-framework.php';

Include in plugin

Download zip file from github repository

  • Extract download zip on your-plugin/wpsf-framework folder under your theme directory

  • Add framework include code on your theme your-plugin/functions.php file

  • Yay! Right now you are ready to configure framework, metaboxes, taxonomies, wp customize, shortcoder

  • Take a look for config files from your-plugin/wpsf-framework/config folder

  • Read for about configuration

Folder Stucture

├── wp-content
|   ├── plugins
|   |   ├── your-plugin
|   |   |   ├── your-plugin.php
|   |   |   ├── functions.php

Add the below code in plugin's main file your-plugin.php

/**
 * WPSFramework
 * A Lightweight and easy-to-use WordPress Options Framework
 */
require_once plugin_dir_path(__FILE__) .'/wpsf-framework/wpsf-framework.php';

Usage as Standalone Plugin

Download zip file from github repository

  • Way1 Extract download zip on wp-content/plugins/wpsf-framework folder under your plugin directory

  • Way Upload zip file from wordpess plugins panel -> add new -> upload plugin

  • Active WPSF Framework plugin from wordpress plugins panel

  • Yay! Right now you are ready to configure framework, metaboxes, taxonomies, wp customize, shortcoder

  • Take a look for config files from wp-content/plugins/wpsf-framework/config folder also you can manage config files from theme directory. see overriding files method.

  • Read for about configuration

.
├── wp-content
|   ├── plugins
|   |   ├── akismet
|   |   ├── wpsf-framework
|   |   ├── ...
|   |   ├── ...

Last updated