jonny-s
Forum Replies Created
-
Hi Patrik
your code works fine.
Thank you a very lot for your fast and accurate answers!
Great support.
Hi Patrik,
I’m back. Your code works well. Thank you!
Can I do the same for the profile page? I mean disable profile page of users of role ‘administrator’ and ‘subscriber’, so that their profile can’t be accessed in any way?
With your code it is still possible to visit user’s profile when knowing their slug.UsersWP’s Doc is silent on hook regrettably.
Hi Patrik,
thanks for the code, I’ll try it later on!
Forum: Plugins
In reply to: [Modern Events Calendar Lite] WP-Widgets in MEC Sidebar disturb outputThx for your answer, but it itsn’t what I was asking for.
I put a WP-native menu widget in MEC’s sidebar, and both, the widgets (MEC’s widgets as WP-natives ones) and the date information displayed in the box above the content are gone. Plz see provided screenshots for understanding.
could you imagine to add the fourth option to ‘public’: ‘let user decide (default not visible)’?
Thanks a lot!
e.g. adding a custom field to user meta in form editor, option ‘public?’: y / n / let user decide. I want the third default to ‘no’ (means box checked by default). When I go to account – privacy, I have to tick the choice to hide. I want to the box ticked by default. So instead of ‘let user hide id’, ‘let user make it visible’.
Did I explain me?
Forum: Themes and Templates
In reply to: [Inclusive] Some enhancement-suggestions for primary-menuOkay, in the meanwhile I switched to other theme. ??
Forum: Plugins
In reply to: [Accordion Blocks] remember open/closed status for logged-in usersHi Phil,
thanks for reading my question and your answer! My point is not to open based on login status, but remember status per user (or visitor) (means saving status to user-meta or even in a simple cookie).
As a starting point, I found this: https://www.jqueryscript.net/accordion/Remember-Toggle-State-Accordion-Cookies.html
But it needs improvemend, as I was able to understand the code.
You would need to add a unique id to each accordion-container and save open/closed status array-like, so that the one cookie may store all the statuses of accordion-blocks used over a website.Unfortunately I’m still not familiar with js or jQuery to code this by my own. :/ So I would be really glad if you may find time to have a look at this.
Regards
Forum: Plugins
In reply to: [Edit Author Slug] How to hide the settings in edit profile page?Hi @subhro2321 ,
I did this by changing permission to admin (so admin still can individualize slug per User, but other users don’t:
/** * Change permission on edit author slug * by replaces Edit Author Slug's function 'ba_eas_can_edit_author_slug' */ function my_remove_eas_on_profile() { //remove plugins inherit function remove_action( 'admin_init', 'ba_eas_can_edit_author_slug' ); // permission default to false. $retval = false; // True if user is admin. if ( current_user_can( 'manage_options' ) || current_user_can( 'edit_author_slug' ) ) { $retval = true; } return (bool) apply_filters( 'my_remove_eas_on_profile', $retval ); } add_action( 'admin_init', 'my_remove_eas_on_profile' );
Forum: Plugins
In reply to: [MailPoet - Newsletters, Email Marketing, and Automation] Tested with WP 5.6?I’m interested in the answer too. Where to find infos about planned track?
Thx!
hi @rahuls17
you can do so like this:
<label>Data: [dynamictext* data "acf field='field_name' post_id='user_NUMBER'"]</label>
wherepost_id=''
can be a post’s value or a user’s one. See https://www.advancedcustomfields.com/resources/ for more instruction.you may follow here: Way to dynamicaly generate values within shortcode?
Regards
@wysija thanks for your answer!
Okay, there is already a request: https://feedback.mailpoet.com/feature-requests/p/better-segmentation-options
Another idea I got how to achieve my goal is render newsletter-parts for every topic (like a newsletter without header- and footer-section, and never be delivered) and fetch them into another newsletter (let this one call “container”) who will be delivered. So when the container-newsletter is going to be send, it looks up for outstanding newletter-parts individually for every addressee.
Would this be a easier way to go?
Forum: Developing with WordPress
In reply to: how to share taxonomies in-between different post-typesThanks a lot!
register_taxonomy_for_object_type() was what I was looking for.
PODS can link taxonomies in relationsships, but I didn’t got it to make wordpress treat the existing taxonomies as a single one.
Have a nice day.
Forum: Plugins
In reply to: [Getwid - Gutenberg Blocks] thoughts about post carousel/sliderThanks @dimned,
to 1: right, I understand. But would be nice be able to show all regarding post but not the first x ones. ?? so to trim array of post ids by its first x entries, and give it then to the loop creating the slide-items.
2: yes right, that’s always possible.
Forum: Plugins
In reply to: [Yoast SEO] CSP, Gutenberg and Yoast SEOOh, please wait. I was on a seminar and will provide further informations at beginning of next week.
I’m not using a Plugin for CSP, but will post the htaccess-rules here too.