Divi Remove Project Post Type

By Adding the below snippet to your WordPress functions.php file you can remove the Divi Project Post Type which is added by Default.


add_filter( 'et_project_posttype_args', 'mytheme_et_project_posttype_args', 10, 1 );
function mytheme_et_project_posttype_args( $args ) {
	return array_merge( $args, [
        'public'              => false,
		'show_ui'             => false,
		'show_in_nav_menus'   => false,
		'publicly_queryable'  => false,
		'exclude_from_search' => false
		]
	);
}
Laravel Redirect Index to Public

Edit your htaccess file.
This alone will redirect your root o the public folder.
If you have a lot inside of your htaccess file. Be careful while adding stuff. Ensure you keep a backup before editing and test the addition of the code inside the htaccess file.

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_URI} !^public
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
Switch PHP version
sudo update-alternatives --config php

Search

Your Favourite Posts

  • Your favorites will be here.

Latest Content

© Garth Baker 2025 All rights reserved.

Pin It on Pinterest

Share This