Skip to content

Commit

Permalink
Merge branch 'enhancement/post-type-template' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
admturner committed Apr 12, 2022
2 parents 315bc46 + 7ded6d8 commit 947478e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion inc/classes/class-award-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ public function action_register_post_types(): void {
'use_featured_image' => esc_html__( 'Use as award image', 'hrswp-employee-recognition' ),
);

$template = array();
$template = array(
array( 'hrswp/er-award-description' ),
array( 'hrswp/er-award-meta-year' ),
);

$award_args = array(
'labels' => $award_labels,
Expand Down
3 changes: 2 additions & 1 deletion src/blocks/er-award-description/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
}
},
"supports": {
"className": false
"className": false,
"inserter": false
},
"editorScript": "hrswp-employee-recognition"
}
5 changes: 3 additions & 2 deletions src/blocks/er-award-meta-year/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
"apiVersion": 2,
"name": "hrswp/er-award-meta-year",
"title": "ER Award Year",
"category": "text",
"category": "widgets",
"description": "The length-of-service year this award belongs to.",
"keywords": [ "text" ],
"textdomain": "default",
"supports": {
"html": false
"html": false,
"inserter": false
},
"editorScript": "hrswp-employee-recognition"
}

0 comments on commit 947478e

Please sign in to comment.