Sayan Datta
Forum Replies Created
-
Use Google Chrome.
Yes they can. They have to just login to your website with username and password. When they will link their account with Account kit from their profile, then they will be able to login using accountkit i.e. without username and password.
Thanks!
Forum: Plugins
In reply to: [WP Last Modified Info] Does this plugin work with WooCommerce products?Forum: Plugins
In reply to: [WP Last Modified Info] Access via REST APIOk. Please let me know if it doesn’t works.
Thanks!
Thanks I Got It But In the plugin Setup it is not Showing.Screenshot here is the Screenshot
Which browser are you using?
But After I Used This Plugin My Old USer Are Not Able To login To My Site.
Your user have to link their profile with Facebook Account Kit. You can find that option in profile page.
Thanks!
Forum: Plugins
In reply to: [WP Last Modified Info] Access via REST APIHi @dusang
Ok fine. Can you add plugin to your website? If you can Install Code Snippets plugin and create a snippet with my code and activate it. And then check REST API output.
Thanks!
Forum: Plugins
In reply to: [WP Last Modified Info] Access via REST APIHi @dusang
WordPress REST API will return only “modified” and “modified_gmt” (both of them are dates) for posts.
As you told before, WordPress does not has any last modified author output in REST API. But this code snippet extends the REST API output as it adds the post last modified author name to the REST API output.
So, you can use that code to extend REST API output of WordPress then you can do anything like you want to query it in C#.
This feature is not added to the plugin yet. So, I give you that code to add it manually to your functions.php file.
For now this plugin just shows post modified author name to the frontend. In future release I may add this Rest Api feature to this plugin.
Thanks!
Forum: Plugins
In reply to: [WP Last Modified Info] Access via REST APIHi @dusang
Have you tried this?
add_action( 'rest_api_init', 'lmt_register_custom_api_field' ); function lmt_register_custom_api_field() { // Add the last modified author name to GET requests for individual posts register_rest_field( 'post', 'modified_by', // you can use anything here like modify_by array( 'get_callback' => 'lmt_cutomize_wp_rest_api_output', ) ); } function lmt_cutomize_wp_rest_api_output( $object, $field_name, $request ) { $modified_id = get_post_meta( $object['id'], '_edit_last', true ); if( $modified_id ) { $last_user = get_userdata( $modified_id ); return $last_user->display_name; } return ''; }This plugin creates a new user of you enabled this option: http://prntscr.com/na3hmw
Thanks!
Forum: Plugins
In reply to: [WP Last Modified Info] Access via REST APIForum: Plugins
In reply to: [WP Last Modified Info] Access via REST APIHi @dusang
Add this code to the end of your functions.php file:
add_action( 'rest_api_init', 'lmt_register_custom_api_field' ); function lmt_register_custom_api_field() { // Add the last modified author name to GET requests for individual posts register_rest_field( 'post', 'modified_by', array( 'get_callback' => 'lmt_cutomize_wp_rest_api_output', ) ); } function lmt_cutomize_wp_rest_api_output( $object, $field_name, $request ) { $modified_id = get_post_meta( $object['id'], '_edit_last', true ); if( $modified_id ) { $last_user = get_userdata( $modified_id ); return $last_user->display_name; } return ''; }And see the results. It will add a field
modified_byto rest data containing Last modified user name if exists.Thanks!
- This reply was modified 7 years, 1 month ago by Sayan Datta. Reason: Use of `register_rest_field()`
Forum: Plugins
In reply to: [WP Last Modified Info] Access via REST APIHi @dusang
You just need to get the last modified author name of posts. Am I right? or any custom post types?
Forum: Plugins
In reply to: [WP Last Modified Info] Access via REST APIHi @dusang
May I know what you want to do by using last modified author name from REST API?
Thanks!
- This reply was modified 7 years, 1 month ago by Sayan Datta.
Forum: Plugins
In reply to: [WP Last Modified Info] Stop output of author’s URLHi @gonowp-org
Add this code to the end of your active theme’s functions.php file:
add_filter( 'wplmi_edit_schema_item', 'lmt_filter_schema_output' ); function lmt_filter_schema_output( $json ) { // unset author url output unset( $json['author']['url'] ); // return json return $json; }Thanks!
Forum: Plugins
In reply to: [WP Last Modified Info] Modified date is not showing in search resultsHi @jsug34
Sorry, I think in this case I can’t help you as your URL indicates post date. Google gives priority to that date and shows that date to SERPs from the post URL through your schema markup (https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fjesuisungameur.com%2F2018%2F03%2F06%2Fles-sims-5-date-de-sortie%2F) is perfectly fine.
But if you now change permalinks then you have to set 301 redirects but I would not suggest that as it may harm your site’s SEO.
Thanks!
Hi @heena1
It seems that Facebook has fixed this issue. Please check it. Thanks!