How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?

I’m setting up a WordPress project with Gatsby as frontend, and also using ACF for content. But I wonder how you would setup global content parts like header, footer, or any other kind of content that is being used globally throughout the website? For example both HOME and ABOUT pages need to have their “own” content, but also shares some specific blocks with same content.

WooCommerce: Force coupon for existing/registered customers

I have some specific regular customers for which I have particular coupons, like 10%, 15% etc. I want the coupon codes to be fixed in their useraccounts so that they do NOT need to enter it during ordering-process. Is it possible? Thanks! Answers: Thank you for visiting the Q&A section on Magenaut. Please note that … Read more

Between functions.php (theme), widgets, and plugins, which is loaded first?

Customer asks if a specific carousel plugin he uses can be widgetized. That means I should create a widget inside functions.php which calls the plugin’s function. That means that the plugin’s code has to be loaded first so that the function be available to WordPress when the functions.php file is loaded, right? Would that work?

Custom pages with plugin

I’m developing some plugin where I would like to enable custom pages. In my case some custom page would contain a form like contact form (not literally). When user will fill out this form and send it, there should be the next step which will require more information. Lets say that the first page with form would be located at www.domain.tld/custom-page/ and after successful form submission, the user should be redirected to www.domain.tld/custom-page/second. Template with HTML elements and PHP code should be also custom.