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

Support for BuddyPress Group Terms #23

Merged
merged 2 commits into from
Sep 13, 2023
Merged

Conversation

renatonascalves
Copy link
Contributor

Add support for BuddyPress group terms.

Screenshot 2023-09-13 at 00 38 15

Copy link
Member

@dlh01 dlh01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌳

$this->object_id = (int) sanitize_text_field( wp_unslash( $_GET['gid'] ?? 0 ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended

// Group meta.
add_meta_box(
'meta-inspector-bp-group-meta',
__( 'Meta', 'meta-inspector' ),
[ $this, 'render_meta' ],
get_current_screen()->id,
fn () => $this->render_meta_table(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason this needs to be an anonymous function rather than [ $this, 'render_meta_table' ]?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inc/objects/class-bp-group.php Outdated Show resolved Hide resolved
@renatonascalves renatonascalves merged commit a18cd7a into develop Sep 13, 2023
2 checks passed
@renatonascalves renatonascalves deleted the feature/bp-group-terms branch September 13, 2023 12:29
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.

2 participants