## Seperate out login and registeration form errors in woocommerce

Question
I have the login and registeration woocommerce forms both in the same page in seperate UI tabs. But the form validation errors of both comes in the hook 'woocommerce_before_customer_login_form' at one place. I need to seperate the login errors from ...
0
2 days 0 Answers 7 views

## Publish Confirmation cycling twice?

Question
I have written this code to double-check users are happy to publish posts: <?php $prompt = "are you sure you're ready to publish"; function confirm_publish(){ global$prompt; print ' <script> var publish = document.getElementById("publish"); if (publish !== null) publish.onclick = ...
0
2 days 0 Answers 4 views

Question
This is my first contact with WP Development, and I'm trying to not display the WP admin bar after the registration. Since it's metadata called 'show_admin_bar-front', I'm updating that right after creating the user. if(count($error) == 0) { ... 0 2 days 0 Answers 4 views ## Setting$_SERVER[‘HTTPS’]=’on’ prevents access to wp-admin

Question
First off my server is sitting behind a load balancer. My SSL certificate sits on the load balancer and handles HTTPS. The data coming in on port 443 is forwarded to the Wordpress server using HTTP on port ...
0
2 days 0 Answers 8 views

## insert thumbnail image from php script

Question
I'm trying to insert a post image thumbnail from my php scritp. It's inserting the post, the content, a download link, and I only need to set the thumbnail image to finish my script. This is my code but I ...
0
2 days 0 Answers 8 views

## Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin

Question
I created a plugin TESTPLUGIN and added it on wordpress admin menu. I can access the plugin from the admin menu just well. The problem I am having is how to link to another file within the plugin. The file ...
0
2 days 0 Answers 13 views

## How to disable register and reset the password from WordPress admin panel?

Question
How to disable register and reset the password from WordPress admin panel? Please I want to do this by codes without using plugins.
0
2 days 0 Answers 9 views

## Call a PHP Function with Multiple Parameters that is outside the AJAX Handler

Question
Q: What is the correct way to call a PHP Function with multiple parameters from the AJAX Handler? Q: Am I calling the php function correctly? Q: Is there an easier way to do this? Page Element The user clicks a button. Action: The ...
0
2 days 0 Answers 7 views

## PHP Error message Upload images to remote server

Question
I'm trying to fix an old plugin that is giving me a php error. I've work with website developer for years but my knowledge of php is limited. If anyone can get me advice I would appreciate it. The orginal ...
0
2 days 0 Answers 8 views

## What is the alternative to  when it comes to calling Media (image) files in the ‘attachment.php’ file?

Question
I am in the process of putting together my own WordPress Theme. Up until now, I have been using the 'single.php' file to act as a Template for both my Blogs and Media Files. In reference to my ...
0
3 days 0 Answers 6 views