widget_name; } public function render_widget( $type = 'php', $extra_params = array() ) { if ( $type == 'php' ) { //Get all settings $settings = $this->get_settings(); } $file_name = stratum_get_plugin_path( '/includes/templates/' . $this->widget_name . '.php' ); if ( !is_readable( $file_name ) ) return; ob_start(); require ($file_name); echo ob_get_clean(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } }