Skip to content

Tag: php

Replace watermark text from searchbar html

I would like to change the placeholder and tooltip text on my search bar. The search box looks like the image below. In other words, I would like to change “Search …” and “Search for:” to something else. Here is the relevant code from searchform.php: I found out that replacing &#…

Force WooCommerce to update fragment

I created plugin which uses WooCommerce fragments for showing to user how many points they have. When user uses some of the points (by adding product into cart) everything works ok. But when admin adds points to user by admin-interface, the fragment is not updated until user adds a new product into cart. Here…

How to correctly set a JWT secret in Laravel with jwt-auth?

I’d like to test the authentication of JWTs in my project as the JWTs will be sent from outside the app, and so they must be signed using the key from my application. Is this possible? Does anyone know of a site that allows you to sign a token using a secret? I tried http://jwtbuilder.jamiekurtz.com/ bu…