Skip to content

Commit

Permalink
Hide twitter accounts if autoshare is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Aug 18, 2023
1 parent 67cb822 commit de4509a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/admin/post-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,9 @@ function render_twitter_accounts( $post_id ) {
if ( empty( $enabled ) ) {
$enabled = Utils\get_default_autoshare_accounts();
}
$display = ( autoshare_enabled( $post_id ) ) ? '' : 'display: none;';
?>
<div class="autoshare-for-twitter-accounts-wrapper">
<div class="autoshare-for-twitter-accounts-wrapper" style="<?php echo esc_attr( $display ); ?>">
<?php
foreach ( $accounts as $account ) {
?>
Expand Down

0 comments on commit de4509a

Please sign in to comment.