Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a 'gp_before_translation_table' hook #1792

Merged
merged 1 commit into from Feb 21, 2024

Conversation

amieiro
Copy link
Member

@amieiro amieiro commented Feb 20, 2024

Problem

We don't have a hook to update the content before the translation table, as we have after it, with the gp_after_translation_table hook, added in #1665.

This hook is needed here.

Solution

This PR adds an action to add content before the translation table is displayed.

Testing Instructions

To test this PR, you can use a code like this:

add_action( 'gp_before_translation_table',
	function () {
		echo '<div>This text should be before the table</div>';
	} );

Screenshots or screencast

@amieiro amieiro merged commit fc78d6b into GlotPress:develop Feb 21, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants