In your terminal, enter the following command
ssh username@host
Then the terminal ask your password
username@host's password:
# see https://sql.sh/988-requetes-migrer-wordpress | |
# Change the URL of the site | |
UPDATE wp_options | |
SET option_value = replace(option_value, 'http://localhost:8888/site', 'http://www.site.fr') | |
WHERE option_name = 'home' | |
OR option_name = 'siteurl'; | |
# Change GUID URL | |
UPDATE wp_posts |
In your terminal, enter the following command
ssh username@host
Then the terminal ask your password
username@host's password:
<?php | |
/** | |
* Settings class | |
*/ | |
/** | |
* Class Settings | |
*/ | |
class Settings { | |
/** |
<?php // phpcs:ignore | |
add_action( 'pre_get_posts', 'exclude_posts_from_feed', 10, 1 ); | |
/** | |
* Exclude posts from feed | |
* | |
* Exclude posts from feed based on a boolean metadata (maybe set by an ACF | |
* field): exclude_from_feed | |
* |
<?php | |
/** | |
* Plugin Name: Billing phone exists | |
* Plugin URI: https://gist.github.com/19h47/2149242aced9856d0b15b24fe14de2ed | |
* Description: A simple function to determines whether the given billing phone exists. | |
* Version: 1.0.0 | |
* Author: Jérémy Levron | |
* Author URI: https://19h47.fr | |
*/ |
<?php | |
/** | |
* Plugin Name: WP Form Controls | |
* Plugin URI: https://gist.github.com/19h47/5bc7dc96204d7290ce781a54756e0a7b | |
* Description: WP Form Controls is a set of function that helps and allows to generate form controls in WordPress. | |
* Version: 3.1.6 | |
* Author: Jérémy Levron | |
* Author URI: https://19h47.fr | |
* | |
* @package 19h47/wp-form-controls |
<?php | |
/** | |
* Plugin Name: WP Insert Image | |
* Plugin URI: https://gist.github.com/19h47/f85ab2722676b1f8e2f86cb2451792b6 | |
* Description: WordPress insert image. | |
* Version: 0.0.0 | |
* Author: Jérémy Levron | |
* Author URI: https://19h47.fr | |
*/ | |
<?php | |
/** | |
* Plugin Name: WP Sticky Custom Post Types | |
* Plugin URI: https://gist.github.com/19h47/c54fd0e7a5c6fbc99a6087e7606054c0 | |
* Description: WP Sticky Custom Post Types is a plugin that enables support for sticky custom post types. | |
* Version: 0.0.1 | |
* Author: Jérémy Levron | |
* Author URI: https://19h47.fr | |
* | |
* @package WordPress |
<?php | |
/** | |
* Plugin Name: WP Sanitize Title With Underscores | |
* Plugin URI: https://gist.github.com/19h47/c54fd0e7a5c6fbc99a6087e7606054c0 | |
* Description: Simple wrapper around sanitize_title_with_dashes to replacing dashes with underscores. | |
* Version: 0.0.1 | |
* Author: Jérémy Levron | |
* Author URI: https://19h47.fr | |
* | |
* @package 19h47/wp-sanitize-title-with-underscore |
<?php | |
/** | |
* Plugin Name: WP Get Theme | |
* Plugin URI: https://gist.github.com/19h47/806c10bd977aa63929dd14e2035e9d28 | |
* Description: Get various information from current theme thanks to WP_Theme object. | |
* Version: 0.0.3 | |
* Author: Jérémy Levron | |
* Author URI: https://19h47.fr | |
* | |
* @package 19h47/wp-get-theme |