cyberespia
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Imageless event returns a boolean in jsonAt the moment I have made the change directly in the code, if someone has a better solution that does not interfere in the code for update updates please share it.
Edit:
plugins/the-events-calendar/src/Tribe/REST/V1/Post_Repository.php and changereturn false
. toreturn null
protected function get_featured_image( $id ) { $thumbnail_id = get_post_thumbnail_id( $id ); if ( empty( $thumbnail_id ) ) { return null; } . . .
Forum: Plugins
In reply to: [JWT Authentication for WP REST API] How get ID UserUpdate
In functions.php to hold the user_id, avatar, role
function jwt_auth_function($data, $user) { $data['user_role'] = $user->roles; $data['user_id'] = $user->ID; $data['avatar']= get_avatar_url($user->ID); return $data; } add_filter( 'jwt_auth_token_before_dispatch', 'jwt_auth_function', 10, 2 );
Forum: Plugins
In reply to: [Product Attachment for WooCommerce] Get Url fileI have already solved it, with this I get the complete url of the file:
$wcpoa_file_url_btn = '<a class="wcpoa_attachmentbtn" href="' . wp_get_attachment_url(esc_attr($attachment_id)) . '" rel="nofollow">' . __("Download", 'woocommerce-product-attachment') . '</a>';
Forum: Plugins
In reply to: [JWT Authentication for WP REST API] LOGIN WITH URLThe POST method does not use the url to send the data (only GET)
Forum: Plugins
In reply to: [JWT Authentication for WP REST API] Feature Request: get_current_user_idI have added the following code in functions.php to hold the User_id, avatar, role
function jwt_auth_function($data, $user) { $data['user_role'] = $user->roles; $data['user_id'] = $user->ID; $data['avatar']= get_avatar_url($user->ID); return $data; } add_filter( 'jwt_auth_token_before_dispatch', 'jwt_auth_function', 10, 2 );
Forum: Plugins
In reply to: [JWT Authentication for WP REST API] How get ID UserSolution: https://github.com/Tmeister/wp-api-jwt-auth/issues/153
in /plugins/jwt-authentication-for-wp-rest-api/class-jwt-auth-public.php
$data = array( 'token' => $token, 'user_email' => $user->data->user_email, 'user_nicename' => $user->data->user_nicename, 'user_display_name' => $user->data->display_name, //add this 'user_id' => $user->data->ID, );
Make sure that the user is EDITOR or ADMINISTRATOR in order to create users or post. A registered simple user can not create users or post.
Forum: Plugins
In reply to: [JWT Authentication for WP REST API] Native appCan I use this plugin to login to a WordPress-based website from a native iOS or Android app (NOT using a webview)?
Precisely for this serves this plugin to make connections authentication from apps (iOS, android), without going to make queries to the database if not using the api-rest of wp
- This reply was modified 5 years, 8 months ago by cyberespia.
- This reply was modified 5 years, 8 months ago by cyberespia.
Forum: Plugins
In reply to: [All push notification for WP] Only for new postIn
plugins/all-push-notification/all-push-notification-for-wp.php
Change:
function all_push_notification_getAllSystemUsers() { global $wpdb; $only_ios = get_option('sendto_ios'); $only_android = get_option('sendto_android');
by:
function all_push_notification_getAllSystemUsers() { global $wpdb; if ( get_post_status ($ID) != 'publish' ) { $only_ios = get_option('sendto_ios'); $only_android = get_option('sendto_android'); } else { $only_ios = "no"; $only_android = "no"; }
Forum: Plugins
In reply to: [All push notification for WP] Disable Push Notification for Posts,pagesIn
wp-content/plugins/all-push-notification/all-push-notification-for-wp.php
comment the following line:add_action( 'publish_post', 'all_push_notification_save_post_page', 10, 2 );
Forum: Plugins
In reply to: [Breadcrumb NavXT] Where is the code?<?php bcn_display(); ?>
Forum: Plugins
In reply to: [CatalogX - Product Catalog Mode For WooCommerce] Localitzation & translationFor my no work ??
Forum: Themes and Templates
In reply to: [Zerif Lite] How to add SmoothScrolladd head:
<script> $(function() { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top }, 1000); return false; } } }); }); </script>
Forum: Plugins
In reply to: YouTube Video Gallery PluginI need to generate a gallery or list of my videos in YOutube,automated!!
Viper’s not to do that!!
Forum: Plugins
In reply to: YouTube Video Gallery Plugin??