BYPASS SHELL BY ./RAZORGANZ
Server: nginx/1.20.1
System: Linux iZdzfnv9mwfppeZ 5.10.134-19.2.al8.x86_64 #1 SMP Wed Oct 29 22:47:09 CST 2025 x86_64
User: apache (48)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins.bak/learnpress/inc/Shortcodes/ListInstructorsShortcode.php
<?php
/**
 * Shortcode display list instructors.
 */
namespace LearnPress\Shortcodes;

use LearnPress\Helpers\Singleton;

class ListInstructorsShortcode extends AbstractShortcode {
	use singleton;
	protected $shortcode_name = 'instructors';

	/**
	 * Show single instructor
	 *
	 * @param $attrs []
	 *
	 * @return string
	 */
	public function render( $attrs ): string {
		$content = '';

		ob_start();
		try {
			if ( empty( $attrs ) ) {
				$attrs = [];
			}
			do_action( 'learn-press/list-instructors/layout', $attrs );
			$content = ob_get_clean();
		} catch ( \Throwable $e ) {
			ob_end_clean();
			error_log( $e->getMessage() );
		}

		return $content;
	}
}