wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



_get_widget_id_base › WordPress Function

Od2.8.0
Przestarzałyn/a
_get_widget_id_base ( $id )
Parametry:
  • (string) $id Widget ID.
    Wymagane: Tak
Powrót:
  • (string) Widget ID base.
Zdefiniowane na:
Codex:

Retrieves the widget ID base value.



Źródło

function _get_widget_id_base( $id ) {
	return preg_replace( '/-[0-9]+$/', '', $id );
}