A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.
1

In WP Admin go to Settings -> Permalinks and Save Changes. You don't need to change anything, just save. This resets wordpress rewrite rules which usually fixes 404 errors with newly added CPTs.


1

Looking at the Gutenberg code in the GitHub repo, we can look at how the inline image format is implemented: https://github.com/WordPress/gutenberg/blob/99f31cdb4ed035264e0332b72dd3a2287d93ff50/packages/format-library/src/image/index.js#L17-L30 export const image = { name, title: __( 'Image' ), keywords: [ __( 'photo' ), __( 'media' ) ], ...


1

It's not a good idea to modify plugins if you can help it, as the plugin may be upated and you will lose your changes and need to redo them. Fortunately, that is not necessary in this case anyway, as you can the filter active plugins option instead. You will need the plugin slug for this: add_filter( 'option_active_plugins', 'custom_plugin_load_filter' ); ...


1

the async property is marked as protected, so that usually signifies that it is related more to your implementation's details rather than functionality. Ideally you would write your tests to test the public methods you have exposed. Testing that the class property you set in the constructor of one class is an instanceof what was initialized doesn't provide ...


1

Your analysis of the problem is absolutely right. By having separate autoloaders in the theme and plugin you'll run into conflicts and only the first one being loaded. There is no easy and general solution to this, but if you control the whole stack the best solution probably is to put the whole site including WP under composer management and define the ...


Only top voted, non community-wiki answers of a minimum length are eligible