You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ Built for enterprise teams, OneDesign unifies your design, editorial, and develo
76
76
- API key
77
77
78
78
### Accessing the Pattern Library
79
-
1. On your Governing Site, access the Design Library from the sidebar menu
79
+
1. On your Governing Site, access the Pattern Library from the sidebar menu
80
80
2. This opens a full-page interface showing all available patterns
81
81
3. Patterns are organized by categories with vertical tabs for your registered sites
82
82
@@ -113,7 +113,7 @@ For development guidelines, please refer to our [Development Guide](./docs/DEVEL
113
113
### How are patterns transferred between sites?
114
114
Patterns are transferred securely via WordPress REST API, ensuring that all pattern data, including blocks and settings, are properly synchronized.
115
115
### Can I customize which patterns are available to specific sites?
116
-
Yes, you can control which patterns are applied to each brand site by managing the selections in the Design Library.
116
+
Yes, you can control which patterns are applied to each brand site by managing the selections in the Pattern Library.
117
117
### Are there any limits to how many patterns I can sync?
118
118
There are no hard limits on the number of patterns you can sync, but performance may vary depending on your server resources and the complexity of the patterns.
119
119
### Can I also remove patterns from specific sites?
@@ -220,34 +220,34 @@ public function modify_design_library_labels( array $args, string $post_type ):
220
220
$post_count = $wpdb->get_var( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- We need to get the latest count.
221
221
$wpdb->prepare(
222
222
"SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = %s AND post_status IN ('publish', 'draft', 'pending', 'private')",
223
-
Design_Library::SLUG
223
+
Pattern::SLUG
224
224
)
225
225
);
226
226
227
227
if ( $post_count > 0 ) {
228
-
// Change "Add New" text to "Edit Design Library".
228
+
// Change "Add New" text to "Edit Pattern Library".
@@ -272,8 +272,8 @@ public function modify_design_library_admin_menu(): void {
272
272
273
273
if ( ! empty( $existing_post ) ) {
274
274
// Change the "Add New" link to edit the existing post.
275
-
$submenu['edit.php?post_type=design-library'][ $key ][2] = 'post.php?post=' . $existing_post[0]->ID . '&action=edit'; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- We need to modify for design library post type.
276
-
$submenu['edit.php?post_type=design-library'][ $key ][0] = esc_html__( 'Edit Design Library', 'onedesign' ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- We need to modify for design library post type.
275
+
$submenu['edit.php?post_type=onedesign-pattern'][ $key ][2] = 'post.php?post=' . $existing_post[0]->ID . '&action=edit'; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- We need to modify for pattern library post type.
276
+
$submenu['edit.php?post_type=onedesign-pattern'][ $key ][0] = esc_html__( 'Edit Pattern Library', 'onedesign' ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- We need to modify for pattern library post type.
277
277
}
278
278
break;
279
279
}
@@ -290,7 +290,7 @@ public function modify_design_library_admin_menu(): void {
0 commit comments