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

Refactor hard dependency on 'deprecated_figuren_theater_v2' #20

Closed
2 tasks
carstingaxion opened this issue Sep 16, 2023 · 1 comment
Closed
2 tasks
Labels
bug Something isn't working dependencies 3rd-party Dependencies

Comments

@carstingaxion
Copy link
Member

carstingaxion commented Sep 16, 2023

Tasks

function remove_columns_from_lists() : void {
if ( ! Figuren_Theater\FT::site()->has_feature( [ FeaturesRepo\Feature__core__contenthub::SLUG ] ) ) {
remove_action( 'admin_init', 'Distributor\\SyndicatedPostUI\\setup_columns' );
}
}

function push_pull_default_args( array $new_post_args, WP_Post $original_post ) : array {
// Set author to machine user.
$new_post_args['post_author'] = Users\ft_bot::id();

@carstingaxion carstingaxion added bug Something isn't working dependencies 3rd-party Dependencies labels Sep 16, 2023
@carstingaxion
Copy link
Member Author

Closed in favor of #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies 3rd-party Dependencies
Projects
None yet
Development

No branches or pull requests

1 participant