How to create Page Template Plugin in wordpress?
ENTIRE CODE Bellow is the entire code for the plugin. Copy paste in main plugin file (plugin.php)
I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.
ENTIRE CODE Bellow is the entire code for the plugin. Copy paste in main plugin file (plugin.php)
get wordpress site title name from url <?php // Exit if accessed directlyif ( !defined( ‘ABSPATH’ ) ) exit; function oops_script(){ wp_enqueue_style(“oops-style”, plugin_dir_url(__FILE__).”style.css”); }add_action(“wp_enqueue_scripts”,”oops_script”); /*+++++++ Declaring Global Variables +++++++++*/$domain =
How to add days in a specific date in php? <?php $Date = “2010-09-17”; echo date(‘Y-m-d’, strtotime($Date. ‘ + 1 days’)); echo date(‘Y-m-d’, strtotime($Date. ‘ + 2 days’)); ?>
create login page with session in wordpres <?phpsession_start();if (isset($_SESSION[‘ID’])){ echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’/login-dashboard”;</script>’;} <?php if(isset($_POST[‘submit’])) { $email=$_POST[’email’]; $password=$_POST[‘password’]; global $wpdb;
How to align center div in div in html ? <html> <head> <style> .outer{ width: 100%; height: 100vh; background:red; } .container{ width: 35%; height: 60vh; background:blue; position: absolute; top:0; bottom:
elementor popup Code Use in main-function file // Add Shortcode function elementor_poup( $atts ) { // Attributes $atts = shortcode_atts( array( ‘id’ => ”, ), $atts ); $etid
assign variables in php with for loop for($i = 0; $i <= 7; $i++) { $name = “variable{$i}”; $$name = “foo”;} or for($i = 0; $i <= 7; $i++) {
wpcodekit Website Designers is one of the best website designing company in punjab 2020. We create beautiful looking, fast and secure websites.We are create professional websites in punjab since 2016.