简体   繁体   English

在Wordpress中包含一个外部PHP库

[英]Including an external PHP library into wordpress

Hello I'm developing a Wordpress plugin and I need to add an external PHP library to my plugin but i don't know well how to include it inside my project. 您好,我正在开发Wordpress插件,我需要向插件添加外部PHP库,但是我不知道如何将其包含在项目中。 Could someone help me? 有人可以帮我吗? Kind regards, Filippo. 亲切的问候,菲利波。

Since this is your first post I suggest you do some research and ask more specific question rather than a generalized question. 由于这是您的第一篇文章,因此我建议您进行一些研究,并提出更具体的问题,而不是笼统的问题。 That being said below I have listed some resources that will help you get started with 话虽如此,我在下面列出了一些资源,可帮助您入门

including external libraries to wordpress 包括用于wordpress的外部库

https://wordpress.stackexchange.com/questions/31726/where-to-put-third-party-php-library https://wordpress.stackexchange.com/questions/31726/where-to-put-third-party-php-library

https://wordpress.stackexchange.com/questions/105605/how-can-i-import-a-class-privately-into-a-plugin https://wordpress.stackexchange.com/questions/105605/how-can-i-import-a-class-privately-into-a-plugin

https://code.tutsplus.com/articles/how-to-include-and-require-files-and-templates-in-wordpress--wp-26419 https://code.tutsplus.com/articles/how-to-include-and-require-files-and-templates-in-wordpress--wp-26419

please read those posts above and ask a more specific question so we can help you out with an answer. 请阅读上面的帖子,并提出一个更具体的问题,以便我们为您提供解答。 Cheers 干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM