WordPress.org

Plugin Reviews

Insert PHP

Run PHP code inserted into WordPress posts and pages.

1234

Average Rating
4.7 out of 5 stars
embedded php code breaks
By , for WP 4.0

PHP code sometimes includes angle brackets, e.g., the "greater than" symbol, as in ->... but embedded PHP using this plug-in becomes corrupted when WP Visual mode converts the brackets to >. Then PHP displays an ugly error message in the browser until each conversion is manually edited in Text mode. Only to break again later.

https://wordpress.org/support/topic/converts-to?replies=4

Needs Error Reporting
By , for WP 4.0

It seems PHP error reporting is turned off. There's an error in my latest addition to my code, but nothing appears.

works...
By , for WP 4.0

...like a charm!

Very easy to use
By , for WP 3.9.1

Easy to install
Easy to use

Plug and Play :)

Works as advertised
By , for WP 3.9.1

I aave tested a little and it works fine. Unfortunately it does not work for texts in side-widgets, so I need to find another plugin to solve that.

Works as advertised
By ,

Nice work!

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 :(

Awesome plugin
By ,

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

Simple and efficient
By , for WP 3.8.1

Great and very useful job, thanks!

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();} ?>

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