@@ -3,7 +3,7 @@ |
||
| 3 | 3 | use ACFComposer\ACFComposer; |
| 4 | 4 | use Flynt\Components; |
| 5 | 5 | |
| 6 | -add_action('Flynt/afterRegisterComponents', function () { |
|
| 6 | +add_action('Flynt/afterRegisterComponents', function() { |
|
| 7 | 7 | ACFComposer::registerFieldGroup([ |
| 8 | 8 | 'name' => 'reusableComponents', |
| 9 | 9 | 'title' => 'Reusable Components', |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | ]; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | -add_filter('acf/prepare_field/name=reusablePost', function ($field) { |
|
| 28 | +add_filter('acf/prepare_field/name=reusablePost', function($field) { |
|
| 29 | 29 | // Set initial instructions and update with selected post link |
| 30 | 30 | $reusableAdminLink = admin_url('edit.php?post_type=reusable-component'); |
| 31 | 31 | $postEditLink = get_edit_post_link($field['value']); |