dongqindan4406 2016-11-22 18:50
浏览 48

添加并激活现有插件到您的自定义Wordpress主题

I have a custom Wordpress theme and I would like to ship it with an additional plugin and make it activated. I am very new to Wordpress and I have been looking at several resources online, but I am still unsure how to go about this. My understanding is that you would add in the functions.php the following:

register_activation_hook( __FILE__, 'the_plugin_I_want' );
function the_plugin_I_want(){
}

My question is how to I "embed" the plugin as part of the theme I am shipping without having the actual plugins (php and .js files) in my plugin folder in wordpress (wordpress\wp-content\plugins). Can I achieve this?

Thanks,

I.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
    • ¥500 火焰左右视图、视差(基于双目相机)
    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)