HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/intranet.kauko.lt/wp-content/plugins/advanced-random-posts-widget/includes/shortcode.php
<?php
/**
 * Shortcode helper
 */

/**
 * Display random posts with shortcode
 *
 * @since  0.0.1
 */
function arpw_shortcode( $atts ) {

	// Get shortcode attr
	$args = shortcode_atts( arpw_get_default_args(), $atts );

	// Load default style
	wp_enqueue_style( 'arpw-style' );

	// Display the shortcode content
	return arpw_get_random_posts( $args, get_the_ID() );

}
add_shortcode( 'arpw', 'arpw_shortcode' );