db = $db; } public function register(): void { $settings = ACSIL_Core::get_settings(); if ( ! $settings['show_meta_box'] ) { return; } $post_types = $settings['post_types']; foreach ( $post_types as $post_type ) { add_meta_box( 'acsil-link-info', __( 'Internal Link Status', 'acs-internal-links' ), array( $this, 'render' ), $post_type, 'side', 'default' ); } } public function render( WP_Post $post ): void { $post_id = $post->ID; $outgoing = $this->db->get_outgoing_links( $post_id ); $incoming = $this->db->get_incoming_links( $post_id ); ?>