ashop59
Forum Replies Created
-
I did it and in the same way I find the line written:
<?php phpinfo(); ?>
I will check it, thank you very much
- This reply was modified 2 years, 2 months ago by ashop59.
apparently if I have php active because the php –version command returns the following:
PHP 7.4.3 (cli) (built: Aug 17 2022 13:29:56) (NTS)
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend TechnologiesForum: Developing with WordPress
In reply to: Modify the third (context) parameter in a filter?Thanks, I’m still working on it. I have some problem with the rest api in my site.
Forum: Developing with WordPress
In reply to: configure the duration of cookies wordpress_sec_Forum: Developing with WordPress
In reply to: Modify the third (context) parameter in a filter?For some reason the auth_cookie_expiration filter doesn’t work on my site… if someone has the same problem here I share the function I used where all the parameters can be customized:
function set_auth_cookie() { if (is_user_logged_in()) { $user_id = get_current_user_id(); $settingValue = $_COOKIE['wp-settings-' . $user_id]; $settingTimeValue = $_COOKIE['wp-settings-time-' . $user_id]; wp_clear_auth_cookie(); $auth_cookie_name = SECURE_AUTH_COOKIE; $scheme = 'secure_auth'; $expiration = time() + YEAR_IN_SECONDS; $manager = WP_Session_Tokens::get_instance( $user_id ); $token = $manager->create( $expiration ); $logged_in_cookie = wp_generate_auth_cookie( $user_id, $expiration, 'logged_in', $token ); $auth_cookie = wp_generate_auth_cookie( $user_id, $expiration, $scheme, $token ); $secure = is_ssl(); $secure_logged_in_cookie = $secure && 'https' === parse_url( get_option( 'home' ), PHP_URL_SCHEME ); setcookie( $auth_cookie_name, $auth_cookie, array('expires' => $expiration,'path' => PLUGINS_COOKIE_PATH,'secure' => $secure,'httponly' => true,'samesite' => 'Strict') ); setcookie( $auth_cookie_name, $auth_cookie, array('expires' => $expiration,'path' => ADMIN_COOKIE_PATH,'secure' => $secure,'httponly' => true,'samesite' => 'Strict') ); setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, array('expires' => $expiration,'path' => COOKIEPATH,'secure' => $secure_logged_in_cookie,'httponly' => true,'samesite' => 'Strict') ); if ( COOKIEPATH != SITECOOKIEPATH ) { setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, array('expires' => $expiration,'path' => SITECOOKIEPATH,'secure' => $secure_logged_in_cookie,'httponly' => true,'samesite' => 'Strict') ); } setcookie( 'wp-settings-' . $user_id, $settingValue, array('expires' => $expiration,'path' => SITECOOKIEPATH,'secure' => $secure,'httponly' => true,'samesite' => 'Strict') ); setcookie( 'wp-settings-time-' . $user_id,$settingTimeValue, array('expires' => $expiration,'path' => SITECOOKIEPATH,'secure' => $secure,'httponly' => true,'samesite' => 'Strict') ); } } add_action( 'init', 'set_auth_cookie' );
Yes of course, that’s what I thought and so I will.
Thank you very much for your support!
thanks!, wp_insert_term was what I needed. But I see that this function does not accept more than one term to add.
How can I add multiple terms and their child terms with a function?
- This reply was modified 2 years, 6 months ago by ashop59.
Forum: Fixing WordPress
In reply to: jQuery Mobile is included in wordpress?perfect, thank you very much!!!
Forum: Fixing WordPress
In reply to: get values (emails) from an array and pass them to wp_mailYes, I agree, but it is that he adds information in each one even if he talks about the same thing. well, thank you but you didn’t give me any help
Forum: Fixing WordPress
In reply to: get values (emails) from an array and pass them to wp_mailthis is how I save the values maybe this will help:
if (isset ($ _ POST [‘sub_sus’])) {
$ email_suscriptores2 = $ _POST [’email_sus’];
$ subscriber_list2 = get_user_meta ($ vendor_id, ‘subscribers3’, false);
if (! array ($ subscriber_list2)) {
$ subscriber_list2 = array ();
}$ subscriber_list2 [] = $ email_subscribers2;
update_user_meta ($ vendor_id, ‘subscribers3’, $ subscriber_list2);
Forum: Fixing WordPress
In reply to: get values (emails) from an array and pass them to wp_mailhello, thank you very much for your help. unfortunately it does not work for me, it does not send emails but it does not return the values to the echo $ email_list either. I’ll keep seeing what I can do, thank you
Forum: Fixing WordPress
In reply to: set a certain time for a user’s goal valueThank you so much