What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-22 10:00:01
plugin custom code to install another plugin
// Include required libs for installation require_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); require_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); require_once( ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php' );... Add solution -
PHP 2022-02-19 08:20:02
jquery get data from php
You can read about ajax in javascript and make an ajax request that gets the json object from PHP then process that in your javascript: Example (with some improvement to your PHP code) PHP $chart6 = $controller->runQuery("SELECT DATE(pay_date... Add solution -
PHP 2022-02-18 03:30:22
csv upload query in php
<?php // Load the database configuration file include_once 'dbConfig.php'; // Get status message if(!empty($_GET['status'])){ switch($_GET['status']){ &... Add solution -
PHP 2022-02-16 19:30:05
image upload and get attachment id in wordpress
/* this function for upload image in wordpress and return attchement id code by joshi yogesh ([email protected])*/ function cst_image_upload($img){ require_once( ABSPATH . 'wp-admin/includes/image.php' ); $attes_id = array(); $cnt = c... Add solution -
PHP 2022-02-13 15:55:08
Dorf SMS Plugin
<?php /* Plugin Name: Dorf SMS Plugin Plugin URI: http://akismet.com/?return=true Description: amaing sms plugin Version: 1.0.1 Author: akshay Author URI: http://www.yourkishore.com License: GPLv2 or later */ include_once('mySettings.php'); if( is_ad... Add solution -
-
Shell/Bash 2022-02-10 18:50:16
getcomposer.org download
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '795f976fe0ebd8b75f26a6dd68f78fd3453ce79f32ecb33e7fd087d39bfeb978342fb73ac986cd4f54edd0dc902601dc') { echo '... Add solution -
PHP 2022-02-09 13:15:34
php send put request
<?php //The URL that we want to send a PUT request to. $url = 'http://localhost/tester/log.php'; //Initiate cURL $ch = curl_init($url); //Use the CURLOPT_PUT option to tell cURL that //this is a PUT request. curl_setopt($ch, CURLOP... Add solution