A simple library to extend WP_Post
github.com/willpercey-gb/wp-extends
Homepage
Source
Issues
Installs: 73
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
Requires (Dev)
None
Suggests
Provides
Conflicts
Replaces
MIT 9e7f19c3d91d58469d4e23615a8f36b01c0119fc
blogwordpressextenduwebproWPPostWPQuery
This package is auto-updated.
Last update: 2025-03-27 20:27:45 UTC
Allowing you to use WordPress your way
<?php use UWebPro\WordPress\Post as WP_Post; class CareHomes extends WP_Post{ public function location(): ?string { $category = \wp_get_post_terms($this->ID, 'locations'); return !$category ? null : $category[0]->name; } }