WordPress.org

Ready to get started?Download WordPress

Plugin Reviews

Insert PHP

Run PHP code inserted into WordPress posts and pages.

Average Rating
5 stars
5 out of 5 stars
5 stars
Works as advertised
By ,

Nice work!

5 stars
I'm struggling with this code
By , for WP 3.9

Hi,

I'm adding this to the Product Short Description to try and change the "Add to Cart" to "Pre-order", but it doesn't work (N.B. the PHP works fine when adding it to functions.php, but that changes all the buttons and I only want it for some pages):

[insert_php]

add_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' );

add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' );

add_filter( 'woocommerce_product_add_to_cart_text', 'woo_custom_cart_button_text' );
function woo_custom_cart_button_text()
{
return __( 'Pre-order', 'woocommerce' );
}

[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

[/insert_php]

Any idea why this is?
The theme I'm using is woocommerce one called Blaszok.

Any help will be deeply appreciated as I'm at my wits end with this :(

5 stars
Awesome plugin
By ,

The plugin is very useful and it gives many features that other php plugins lack.

5 stars
Simple and efficient
By , for WP 3.8.1

Great and very useful job, thanks!

5 stars
Will this work with
By , for WP 3.8.1

I am trying to add a php code for a slider plugin to my website header or pages. Will this work?

EX Tag:
<?php if(sb_slides_display()){sb_slides_display();} ?>

5 stars
WPDB() class
By , for WP 3.8.1

Hi, it is great plugin. even wordpress functions is working in it, but i tried to work with WPDB class is not working . how can i include it?

5 stars
Does exactly what it says!
By , for WP 3.8.1

Makes adding PHP so simple! Love it.

5 stars
Does EXACTLY what it says it does!
By , for WP 3.8.1

Thank you. I have to use PHPEnkoder for my clients websites to block their email addresses from spammers. I needed to turn it off on certain pages only for WooCommerce and LearnDash. That required putting PHP code in the course and shopping cart pages. Your plugin works like a charm!

Thank you, thank you, thank you!

5 stars
Good plugin, better author.
By , for WP 3.6.1

The plugin works just fine. But Bill's support is even better. I installed the plugin and wasn't able to get the right code in combination with an iframe. He gate me the exact code after one question!!!

5 stars
worked as expected
By , for WP 3.6.1

Worked perfectly without any issues. Great work.

You must log in to submit a review. You can also log in or register using the form near the top of this page.