Skip to content

Instantly share code, notes, and snippets.

View davedenis's full-sized avatar

Dave Denis davedenis

View GitHub Profile
@davedenis
davedenis / gist:56a95f6923ec78064d12
Created December 14, 2015 19:34 — forked from jamieschmid/gist:c83d3c39316ace7a88b7
Change Projects Custom Post Type name in Divi, still works with Portfolio
$singular_name = 'Book'; // Enter the singular name for your new post type within the quotes
$plural_name = 'Books'; // Enter the plural name of your new post type within the quotes
function divi_projects_rename() {
global $wp_post_types;
global $singular_name;
global $plural_name;
$labels = $wp_post_types['project']->labels;