Include github project into wordpress plugin

你说的曾经没有我的故事 提交于 2019-12-12 04:24:14

问题


I would like to use the following php wrapper in my wordpress plugin.

PHP Object wrapper for the Google Chart API

However, the installation description says that composer has to be used, which I am not using for managing dependencies.(it`s a really small plugin)

I am trying to include it the following way:

include(WPPLUGIN_PATH. 'gcharts/ClassLoader.php');

However, this does not work. I guess I haven`t included the right php-class.

Any suggestions which php-file has to be included to make the example run?

I appreciate your answer!


回答1:


Start with examples.php file in repo you provided.

There's:

<?php
require_once(__DIR__ . "/gchart/gChartInit.php");
?>


来源:https://stackoverflow.com/questions/38598182/include-github-project-into-wordpress-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!