astra_get_last_meta_word( string $string )

Get last word of string to get meta-key of custom post structure.


Description


Parameters

$string

(string) (Required) from this get last word.


Return

(string) $last_word result.


Source

File: inc/blog/blog.php

function astra_get_last_meta_word( $string ) {
	$string    = explode( '-', $string );
	$last_word = array_pop( $string );
	return $last_word;
}

Changelog

Changelog
Version Description
4.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.