If you must use the 3rd party function – why not just reformat the returned value?
Date ($id) {
$userActivityDate = Br::show_activity_date($id);
date_timezone_set($userActivityDate, timezone_open('timezone You want it to be in'));
date_format($userActivityDate, 'Y-m-d H:i:sP');
$return = apply_filters('user_activity', $userActivityDate);
}
If the return value of the Br::show_activity_date
is not directly useful in this manner, then I suggest you update your question to include what it returns, in order to provide a more complete answer.
Related Posts:
- Shared functionality in plugins and themes
- Plugin update error message
- How to Loop Plugin Option Field Set?
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- How to handel multiple checkbox field in the admin settings page with Settings API
- wp_insert_user – how to send verification email before logging in
- Is the WordPress HTTPS Plugin Still Safe To Use? [closed]
- Set a User as Author of all ‘New Posts’ posted
- Post source link plugin – small modification
- How do you auto-activate plugins from child themes
- What is the function to get plugin base url in multisite?
- Code in theme functions.php faster than with a plugin?
- Disabling post images for not logged in users
- Extend Elementor Archive Posts widget with a custom skin in order to show multiple badges
- HELP: Integrating WP with raw PHP code once published button is hit
- Override the core function locate_template
- Modifying Footnote Plugin for Descriptive Title Attributes
- I would like to use create a function in my custom plugin to tell WP to use a different header
- bulk change of image setting “link to” to “link to: image url “
- Trying to count the total number of paragraphs inside a blog article
- How to get post URL in the_content filter?
- May i Use ShortCode in Template?
- Pass info from functions.php to plugin
- add_query_arg not working
- Inserting HTML tag with ACF into shortcode
- How to stop or remove an action being called inside a function of an extended class
- How to Display a Plugin function (content) on frontpage using index.php
- Theme my Login plugin, how to update fields
- Date calculations from 2 custom fields
- How to debug error message: Cannot modify header information
- How to enable specific plugin only based around shop manager role?
- get current date + 90 days and checking every day
- Adding a new field to the address field type in gravity forms
- How to create an input field, and base the output on spreadsheet data? [closed]
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- Customize permalink wordpress category id
- Admin style for just one plugin in dashboard
- How to set Noindex to all wordpress pages in a catergory?
- Redirect to another page using contact form 7? [closed]
- Display Custom Field Value on Admin Page Column
- List the authors that have written posts in a category
- Load Javascript from Plugin in One Page Only?
- Checking the count within a foreach loop
- How to keep variable `$post` to using in another file
- Create a post builder skin in a plugin
- Plugin Development – Functions or Hooks?
- wp_dequeue_script for a Plugin
- Need to replace Currency Shortforms
- wc_get_template new template does not showing up
- Overriding an Array in a Plugin’s Class/Function from functions.php
- How do I create a custom permalink structure for a page template
- How to remove a class function from a plugin by using remove_action()?
- Change Header (Logo) Based on Login
- Hook for altering the content of all wp mails
- How can i list random author?
- Can you echo PHP code from a variable?
- Defining the value of a variable before a function?
- How to get custom minimum price in Woocommerce
- Dynamic URL Rewrite for Custom
- how to validate input field in wordpress generated with wpform plugin
- How to get current cart values using WC_Shortcodes?
- Error using wordpress functions inside a plugin class
- WordPress default post categories meta box widget
- Fatal error “Call to undefined function is_plugin_active” each time the plugin is activated
- Share my WordPress plugin for updating how?
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Conditional Homepage for logged in user
- Make modification of add_to_cart button specific to single page
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- how can export data in excel file custom plugin
- WP_CRON issue with UTC and local time
- How to wrap image tag into div for post only?
- Update User Meta Via Ajax
- Unexpected plugin_dir_path Output
- how to repeat taxonomy in different places on wordpress
- how to create table during plugin installation in side a class
- AJAX login without a plugin does not work. when add a action to function.php
- Posting code inside the post instead of in the template file using shortcode
- Metabox Data not saving
- How to add a handler for a button in plugin?
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Custom Function for SEO by Yoast plugin
- Call current post parameters inside a plugin
- Can’t get custom user meta to show in header
- Including a PHP file via a function that is part of a plugin?
- Building custom pages with a video player
- overwrite a plugin function in functions.php
- Pass strings to plugin function [closed]
- Move related products after product summary? [closed]
- How to tweak a plugin without preventing it from updating
- WP Members additional fields on user profile [closed]
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Woocommerce disable checkout on specific day
- Display Video as Post Thumbnail
- Notifications Bar on home page only
- How to Add Extra Text In WordPress Title Before Post Publish
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- WordPress Convert queries to slashes using function.php