New answers tagged

0 votes

$wpdb not working wordpress plugin ajax call

Please add below lines on top of your php script <?php define( 'SHORTINIT', true ); $path = preg_replace('/wp-content(?!.*wp-content).*/','',__DIR__); require($path.'wp-load.php' ); and you are ...
user avatar
1 vote

How to remove js ui library added by default by wordpress

The related library is registered with a function called wp_default_scripts. File location (for Wordpress 6.0): ...wp-includes/script-loader.php remove to remove the relevant script; The add function ...
user avatar
1 vote
Accepted

Add php code to wp_print_scripts?

You can use admin_footer or admin_head like below. This code only run on admin. You can also use for frontend by using wp_head or wp_footer function shapeSpace_print_scripts() { $block_yt_url = '...
user avatar
1 vote
Accepted

Change quantity via jQuery and disabile quantity field

If the input is disabled, it is ignored during form submission. You can try to use readonly attribute. As it says in the docs: The difference between disabled and readonly is that read-only controls ...
user avatar
  • 347

Top 50 recent answers are included