What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-01-22 17:00:35
wordpress error enable
//Add develop or production config on your wordpress /wp-config.php file //DEVELOP CONFIG @ini_set( 'log_errors', 'On' ); @ini_set( 'display_errors', 'On' ); define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', true );... Add solution -
PHP 2021-11-20 05:23:10
create config value file in php
<?php return (object) array( 'host' => 'localhost', 'username' => 'root', 'pass' => 'password', 'database' => 'db' ); ?> This allows you to use the object syntax when you include the php : $configs->host instead o... Add solution -
PHP 2021-11-20 02:45:23
how to embed mailchimp on custom form
Log in to your A2 Hosting account using SSH. At the command prompt, type the following commands: cd ~ git clone https://bitbucket.org/mailchimp/mailchimp-api-php.git After the git clone command completes, there is a new mailchimp-api-php directory. Type ... Add solution -
PHP 2021-11-11 05:17:31
dequeue dashicons
// INSIDE YOUR THEME FUNCIONS.PHP FILE -> function wpdocs_dequeue_dashicon() { wp_deregister_style('dashicons'); } add_action( 'wp_enqueue_scripts', 'wpdocs_dequeue_dashicon' ); // OR remove dashicons in frontend to non-admin function wpdocs_dequeu... Add solution -
PHP 2021-11-07 22:10:17
php cors header multiple domains
//Function to be called first in php file. function CORS_HEADERS_HANDLER(){ if (isset($_SERVER['HTTP_ORIGIN'])){ switch($_SERVER['HTTP_ORIGIN']){ //Handle an IP address and Port case 'http://1.2.3.4:4200': header('Access-Contro... Add solution