Website Developer has gone missing! How to gain full access of your code from a WordPress website?

Assuming you have admin access, the first thing to do is to downgrade his admin user to ‘contributor’ (lowest level). If you have been sharing the admin access, create a new admin account just for you, then log in as that account, and then downgrade that admin account. And don’t create an account called ‘admin’ … Read more

Develop theme with demo default content, programmatically create pages

use after_setup_theme create your post and tags then save the data, add option key and only run your setup once, i.e. add_action( ‘after_setup_theme’, function() { $setupKey = ‘my_theme_activated’; $setupAlreadyRun = get_option($setupKey); if ( $setupAlreadyRun ) return; my_theme_setup( $setupKey ); }); function my_theme_setup( $setupKey ) { $posts = [ [ ‘post_title’ => ‘Project Page’, ‘post_type’ => … Read more