Creating a custom functions page wordpress

I don’t think WordPress knows to load or run anything from your registerProcess.php file, so what I would do is leave the register_user() function in that file, and then require_once it from functions.php and do the active part of the code – the if .. register_user() inside functions.php where it will be run. (This is … Read more

large image size of 1440×1440 not pulling 2x of 2880×2880 image

Three things to check: Have you added add_theme_support(‘post-thumbnails’);? Is the uploaded image larger than 2880px x 2880px? Are you already regenerate all the thumbnails, including the existing?. Referring to the second, if the image is not “suitable” for the size, WordPress won’t make the thumbnail, because it can’t. For instance, if you upload an image, … Read more

wp_get_current_user return ID = 0 when used outside of wordpress, such as webhook / fulfillment dialogflow

I dont understand where are you calling from. I can give you an alternative solution that may or may not work in your case (since I don’t fully understand your case): This is your ajax-url on your site: echo admin_url( ‘admin-ajax.php’ ); Usually we attach it to the JS to run AJAX calls: wp_localize_script( ‘THE_JS_THAT … Read more

Show data obtained from a function and place it in a shortocode function

I don’t really understand what you’re trying to do. Why don’t you just call the function inside the shortcode handler? This looks more like general PHP question. Say we have a variable in our functions.php or wherever you define your shortcodes: $another_var = doSomeFunctionThatReturnsData(); With modern anonymous functions, you can pass variables using the use … Read more