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

Auto cleanup values of “post” field when a post is deleted #1581

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tuankiet2605
Copy link
Contributor

No description provided.

Copy link
Member

@rilwis rilwis left a comment

Choose a reason for hiding this comment

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

Format lại code nữa.

inc/field.php Outdated
* @param bool optional flag removal of empty arrays after filtering
* @return array merged array
*/
private static function array_filter_recursive( array $array, callable $callback = null, bool $remove_empty_arrays = false ): array {
Copy link
Member

Choose a reason for hiding this comment

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

Hàm này đưa vào class Helpers\Arr.

inc/field.php Outdated
});

return array_filter( $meta );
}
Copy link
Member

Choose a reason for hiding this comment

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

Nên đưa hàm này vào class của các field object (mình có class object choice rồi).

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