Created
July 5, 2024 06:48
-
-
Save BhargavBhandari90/e7e4c761b4d1e8aafc1e148bbe13200b to your computer and use it in GitHub Desktop.
Change App page response
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function bbtest_render_app_page_data( $app_page_data, $block_data ) { | |
if ( isset( $app_page_data['type'] ) && 'bbapp/notifications' === $app_page_data['type'] ) { | |
$app_page_data['data']['data_source']['route'] = '/buddyboss-app/v1/notifications?&sort_order=DESC&order_by=date_notified'; | |
} | |
return $app_page_data; | |
} | |
add_filter( 'bbapp_render_app_page_data', 'bbtest_render_app_page_data', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment