add_filter( 'wpsl_cluster_marker_shapes', 'my_cluster_image_shape' ); function my_cluster_image_shape( $shapes ) { $file = get_stylesheet_directory() . '/wpsl-markers/cluster.png'; if ( ! file_exists( $file ) ) { return $shapes; } $image = 'data:image/png;base64,' . base64_encode( file_get_contents( $file ) ); $shapes['my-image'] = [ 'label' => 'Custom image', 'svg' => '${count}', 'size' => 50, ]; return $shapes; }