Skip to content

Instantly share code, notes, and snippets.

View viramgamijignesh's full-sized avatar
🏠
Working from home

viramgamijignesh

🏠
Working from home
View GitHub Profile
https://cpanel.epizy.com/panel/index.php
Cpanel URL: http://cpanel.epizy.com
Username: epiz_22327864
Password: gb3m5kt9
FTP Username: epiz_22327864
FTP Password: gb3m5kt9
FTP HostName: ftp.epizy.com
Step #1 : Export Db to current server first. (I mean je server per DB che tya pahela aapde export kari ne sql file banavisu)
Step #2 : Will perform file transfer in between 2 servers. (Have e Sql file ne aapde new server par transfer karisu. SSH command thi)
Step #3 : Create DB and its user using phpmyadmin. (Import karva mate DB name and users create karva pade)
Step #4 : Import DB using ssh command.
Step #5 : Change Base url and other options using direct DB update. (PHPmyadmin thi base url change karvani)
<a class="sign-up-link hvr-shutter-out-vertical" data-toggle="modal" data-target="#myModal"> Contact Us</a>
<!-- Modal -->
<div class="modal" id="myModal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title">Sales Agent</h4>
</div>
<div class="modal-body">
$args = array(
'public' => true,
'_builtin' => false,
);
$output = 'names'; // names or objects, note names is the default
$operator = 'and'; // 'and' or 'or'
$postType = '';
$post_types = get_post_types( $args, $output, $operator ); // get all custom post type name
@viramgamijignesh
viramgamijignesh / view.php
Created July 6, 2018 14:14
CI excel read data
<?php
if (!class_exists('PHPExcel')) return false;
$directory = "./excel/";
$files = glob($directory . "*");
foreach ($files as $filesName)
{
$inputFileName = $filesName;
$row_callback=null;
https://cpanel.epizy.com/panel/index.php
Cpanel URL: http://cpanel.epizy.com
Username: epiz_22327864
Password: gb3m5kt9
FTP Username: epiz_22327864
FTP Password: gb3m5kt9
FTP HostName: ftp.epizy.com
@viramgamijignesh
viramgamijignesh / usefulllink.php
Last active April 21, 2022 08:49
Usefull Link
<?php
add_action( 'init', function() {
wp_register_script( 'voce-wp-media-modal', plugins_url( 'wp-media-modal.js', __FILE__ ), array('jquery'), false, true );
} );
//////////////// js ///////////////////
/***
*
@viramgamijignesh
viramgamijignesh / wp_media_uploader.php
Created January 18, 2018 09:22
wp_media_uploader
/**
*
* wpMediaUploader v1.0 2016-11-05
* Copyright (c) 2016 Smartcat
*
*/
( function( $) {
$.wpMediaUploader = function( options ) {
var settings = $.extend({
@viramgamijignesh
viramgamijignesh / Custom List Table With Database Example.php
Created January 18, 2018 09:19
Custom List Table With Database Example
<?php
/*
Plugin Name: Custom List Table With Database Example
Description: A highly documented plugin that demonstrates how to create custom admin list-tables from database using WP_List_Table class.
Version: 1.0
Author: Viramgami Jignesh
Author URI: https://github.com/viramgamijignesh/
License: GPL2
*/