Questions tagged [pluggable]
The pluggable tag has no summary.
110 questions
0 votes
1 answer
76 views
Is there any downside to making a theme fully pluggable? [closed]
if ( !function_exists( 'my_function' ) ) { // do function } I'm not sure why, but it never occurred to me before to make a theme fully pluggable so that it's easier for people to customize with a ...
1 vote
0 answers
81 views
Post Navigation Elementor
I'm using Elementor and ACF on a website and have a custom post type for events. In elementor I have the posts on the archive page set to order by the ACF start date field. When the user clicks the ...
2 votes
1 answer
65 views
What is the best way to override functions of thirdparty plugins?
Sometimes I need to edit some plugins to my solutions. If plugin has hooks and/or function_exist() checks - i can override it via function.php in my theme. But another question - if author refactor ...
0 votes
1 answer
69 views
How can I edit the wp_parse_auth_cookie function from the pluggable file in my functions?
I need to modify that function to decrypt the username that I have encrypted.
0 votes
1 answer
890 views
Customize Notification Email Sent to New User When Manually Created by Site Administrator
I am looking to customize the "Login Details" email sent by WP Core when an administrator checks off "Send User Notification" while manually creating a user from /wp-admin/user-new....
0 votes
1 answer
161 views
plugabble wp_authenticate function not works from wp-login.php
I created in my plugin a wp_authenticate function: if ( ! function_exists( 'wp_authenticate' ) ) : function wp_authenticate( $username, $password ) { inside this function, if it's the first ...
1 vote
2 answers
1k views
WordPress login set cookie that survive browser exit (wp_signon function)
I've read all the relevant question here on StackExchange and I haven't found a solution. Here's the problem: I use a plugin to use Google OAUTH to login in Wordpress. All working correctly, but I can'...
0 votes
0 answers
40 views
How can I insert code into the pluggable.php file without it getting deleted after a wordpress update
Regarding the code that is being inserted into the pluggable.php file: its a require statement that links to a php file that is used to overwrite the basic wp mail functionality. Thanks in advance.
0 votes
1 answer
362 views
Override a function defined in wp-includes/comment-template.php
I need to override the function get_cancel_comment_reply_link or cancel_comment_reply_link that are defined in wp-includes/comment-template.php These functions are not listed in pluggable.php. How ...
0 votes
1 answer
485 views
How to apply a function to the value $email of get_user_by to override email_exists?
More precisely questions : How to override email_exists via get_user_by ? I have chosen to render unusable/unreadable email adresses from database. I added a few elements(chars) to email address just ...
0 votes
1 answer
138 views
Login cookies blocked after customizing hashing method
I get the following error when trying to login: Error: Cookies are blocked due to unexpected output. I customized the wordpress core functions wp_hash_password() and wp_check_password() to use SHA1 ...
0 votes
1 answer
44 views
Need to replace Currency Shortforms
I want to replace the currency shorten alphabet, it is currently in M, L and So on. I want to change to indian currency number format like K, L and CR below is code: if(!function_exists('...
0 votes
1 answer
701 views
Is it possible to override only a part of another plugin's / theme's js (asset) file?
I try to go one step forward based on this question and instead of overriding the whole .js file of another plugin, i'm wondering is it possible to override/swap only a part of that js file ...
1 vote
1 answer
331 views
the file placed in the child theme is not included
I have modified the theme.php file located in the parent theme in the "Includes" folder, and I have placed it in the child theme also in the "Includes" folder, but my changes are not included. ...
0 votes
1 answer
166 views
How to target post and pages and not all post types in admin?
I've got a strange issue with a plugin I'm modifying. What happens is that this plugin adds meta boxes in an dashboard options page so scripts and style sheets can be globally added to the header and ...