File: tests/sample-app/plugins/wp-plugin-info/config/add-paths.php

Recommend this page to a friend!
  Classes of Josantonius  >  WP_Plugin-Info  >  tests/sample-app/plugins/wp-plugin-info/config/add-paths.php  >  Download  
File: tests/sample-app/plugins/wp-plugin-info/config/add-paths.php
Role: Example script
Content type: text/plain
Description: Example script
Class: WP_Plugin-Info
Retrieve WordPress plugin information values
Author: By
Last change:
Date: 2 years ago
Size: 676 bytes
 

Contents

Class file image Download
<?php
/**
 * WP Plugin Info Get and save plugin information from WordPress API.
 *
 * @author Josantonius <hello@josantonius.com>
 * @package eliasis-framework\wp-plugin-info
 * @copyright 2017 - 2018 (c) Josantonius - wp-plugin-info
 * @license https://opensource.org/licenses/MIT - The MIT License (MIT)
 * @link https://github.com/eliasis-framework/wp-plugin-info.git
 * @since 1.0.0
 */

use Eliasis\Complement\Type\Plugin;
use
Eliasis\Framework\App;

$root_path = Plugin::WP_Plugin_Info()->getOption( 'path', 'root' );

return [
   
'path' => [
       
'components' => $root_path . 'src/template/components/',
       
'data' => $root_path . 'src/data/',
    ],
];


For more information send a message to info at phpclasses dot org.