My first wordpress plugin | how create wordpress plugin | wordpress plugin tutorial <?php /* * Plugin Name: Mydb * Description: A short example showing how to add a taxonomy called Course. * Version: 1.0 * Author: developer.wordpress.org * Author URI: https://wordpress.slack.com/team/aternus */ /* ==============STEP 6================== */ function set_error($value) { echo "<div id='wrap'> <div class='error'> ".$value." </div> </div>"; } if (isset($_POST['submit']) && isset($_POST['name'])) { if(!empty($_POST['name']) && !empty($_POST['email']) && !empty($_POST['text']) && !empty($_POST['url']) ) { Mydb_Insert_data($_POST['name'],$_POST['email'],$_POST['text'],$_POST['url']); }else{ set_error("all field are required"); } } function Mydb_Insert...
Comments
Post a Comment