Skip to content

Instantly share code, notes, and snippets.

@jonathanbossenger
Last active November 26, 2024 19:24
Show Gist options
  • Save jonathanbossenger/bb1450e1b21b22f512e05e4bd3f276a3 to your computer and use it in GitHub Desktop.
Save jonathanbossenger/bb1450e1b21b22f512e05e4bd3f276a3 to your computer and use it in GitHub Desktop.
addFilter(
"editor.BlockEdit",
"wpdev/is-post-link",
( BlockEdit ) => {
return (props) => {
if (props.name !== "core/button") {
return <BlockEdit {...props} />;
}
return (
<>
<BlockEdit {...props} />
<Edit {...props} />
</>
);
};
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment