settings_page_tabs[ $page ][ $position ] = array( 'title' => $title, 'href' => $href, ); } public function get_settings_page_tabs( $page ) { $tabs = $this->settings_page_tabs[ $page ]; ksort( $tabs ); return $tabs; } public function debug_log( $data ) { if ( ! defined( 'WP_DEBUG' ) || true !== WP_DEBUG ) { return; } if ( is_array( $data ) ) { // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r -- debug only $data = print_r( $data, true ); } // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- debug only error_log( '>>> plugin debug: ' . $data ); } }