bp_search_get_post_thumbnail_default( $post_type )
Returns the defulat post thumbnail based on post type
Description
Source
File: bp-search/bp-search-functions.php
function bp_search_get_post_thumbnail_default( $post_type ) {
$default = [
'product' => buddypress()->plugin_url . 'bp-core/images/search/product.svg',
'sfwd-courses' => buddypress()->plugin_url . 'bp-core/images/search/course.svg',
'sfwd-lessons' => buddypress()->plugin_url . 'bp-core/images/search/topics.svg',
'sfwd-topic' => buddypress()->plugin_url . 'bp-core/images/search/topics.svg',
'sfwd-quiz' => buddypress()->plugin_url . 'bp-core/images/search/quizzes.svg',
'post' => buddypress()->plugin_url . 'bp-core/images/search/blog-post.svg',
'forum' => buddypress()->plugin_url . 'bp-core/images/search/forum.svg',
'topic' => buddypress()->plugin_url . 'bp-core/images/search/topics.svg',
'reply' => buddypress()->plugin_url . 'bp-core/images/search/forum.svg',
'bp-member-type' => buddypress()->plugin_url . 'bp-core/images/search/membership.svg',
'memberpressproduct' => buddypress()->plugin_url . 'bp-core/images/search/membership.svg',
'wp-parser-function' => buddypress()->plugin_url . 'bp-core/images/search/code.svg',
'wp-parser-class' => buddypress()->plugin_url . 'bp-core/images/search/code.svg',
'wp-parser-hook' => buddypress()->plugin_url . 'bp-core/images/search/code.svg',
'wp-parser-method' => buddypress()->plugin_url . 'bp-core/images/search/code.svg',
'command' => buddypress()->plugin_url . 'bp-core/images/search/code.svg',
];
return
isset( $default[ $post_type ] ) ?
$default[ $post_type ] :
buddypress()->plugin_url . 'bp-core/images/search/post-type.svg';
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.