What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-01 03:25:12
recuperer des informations d'une table parent en sql
If you want to handle sessions with a class, I wrote this little class: <?php /* Use the static method getInstance to get the object. */ class Session { const SESSION_STARTED = TRUE; const SESSION_NOT_START... Add solution -
Other 2022-02-27 10:40:20
Self hosted Auto update Custom WP Plugin or Theme - AKA Personal Wordpress Update Repository
define( 'PREFIX_PLUGIN_VERSION', '1.7' ); ################### # Automatic updates ################### /** * Pop-up with details about plugin update visible when there is a new release */ function prefix_plugin_info( $res, $action, $args ) { // do... Add solution -
PHP 2022-02-25 16:40:04
wordpress set two login pages
<?php //if you want to show two (different) login pages for two (different) links, //you can first of all think of two urls for two different login pages. //here, i have two links => /login-old and /login-new for which i want different forms, //n... Add solution -
PHP 2022-02-25 03:15:09
wp varnish ip
//Add at the top of wp-config.php $temp_ip = explode(',', isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : (isset($_SERVER['HTTP_CLIENT_IP']) ? $_SERVER['HTTP_CLIENT_IP'] : $_SERVER['REMOTE_ADDR'])); $remote_addr = trim($temp_... Add solution -
PHP 2022-02-24 17:05:02
how to make a sign-up database
<?php session_start(); // initializing variables $username = ""; $email = ""; $errors = array(); // connect to the database $db = mysqli_connect('localhost', 'root', '', 'registration'); // REGISTER USER if (isset($_POST['reg... Add solution -
PHP 2022-02-24 11:35:06
woocommerce remove payment method when totla is 0
function payment_gateway_disable_total_amount( $available_gateways ) { global $woocommerce; if ( isset( $available_gateways['paypal'] ) && $woocommerce->cart->total == 0 ) { unset( $available_gateways['paypal'] ); } return $availabl... Add solution -
PHP 2022-02-22 10:45:11
isset submit in php
if(isset($_POST['submit']){ //Your Code Here } Add solution