最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

html - Include my files in a plugin?

programmeradmin1浏览0评论
This question already has an answer here: can somebody help me with this [closed] (1 answer) Closed 4 years ago.

I have problem with including my files into a plugin, mycontactform folder and files within it works fine in localhost and I can do CROD methods but, I don't know how to share my files into plugin.

<?php
/*
*Plugin Name: Contact Form
*Plugin URl" 
*Description: A plugin for contact form and application form
*Version:1.0
*Author: Jetmir Zela
*Author URl: 
*License:GPL2

*/
add_action('contact', 'contactform_example_function');

function contactform_example_function(){
include('home.php');
}

add_shortcode('contact', 'contactform_example_function');
?>

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论