This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update the Apt cache and upgrade the current packages of system | |
sudo apt update && sudo apt upgrade | |
# nstall few dependencies required | |
sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https | |
# Add the Ondrej PPA | |
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remove_yoast_meta_boxes( $post_type ) { | |
$custom_post_type= 'movies'; // Replace this with your actual post type name. | |
if ( $custom_post_type === $post_type ) { | |
// remove Yoast SEO metaboxes if present. | |
remove_meta_box( 'wpseo_meta', $post_type, 'normal' ); | |
remove_meta_box( 'yoast_internal_linking', $post_type, 'side' ); | |
} | |
} | |
add_action( 'add_meta_boxes', 'remove_yoast_meta_boxes', 90 ); | |
// Remember to give priority a higher number. e.g. 90 or more bigger |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First switch to database | |
USE db_name; | |
# replace file name with full file path. | |
SET autocommit=0; source the_sql_file.sql; COMMIT ; |
OlderNewer