Usign this plugin, I am trying to execute SQL query
$post_count = $wpdb->get_var( “SELECT * FROM 011wp_posts WHERE post_type = ‘post’ AND post_status=’publish’ ” );
WHen saving it I get:
412 Error
Your request got filtered out due to possible security issues.
One or more things in your request were suspicious (defective request header, invalid cookies, bad parameters)
In phpMySQL query (SELECT * FROM 011wp_posts WHERE post_type = ‘post’ AND post_status = ‘publish’; ) works and I would get 3 rows accounted for.
Any suggestion please.
]]>i try to use your tool with admin_head action filter but doesn’t work:
i try with no results:
<?php
function kootj_custom_fonts() {
echo '<style>#woocommerce-order-items tbody tr .wc-order-edit-line-item-actions { visibility: visible !important;} </style>';
?>
and
<?php
echo '<style>#woocommerce-order-items tbody tr .wc-order-edit-line-item-actions { visibility: visible !important;} </style>';
}
?>
are admin hook not possibleto use?
]]>Dear Support,
In the plugin features there is:
“Export all custom programming and import into another site”
So where does this exist inside the plugin?
Thank you in advance
]]>NOTICE: wp-content/plugins/custom-css-js-php/custom-css-js-php.php(241) : eval()’d code:2 – Undefined index: panel
]]>I don’t think, that php code, that should be run on an action or filter has any change to get executed, since the call to wce_run_filter_action_hooks() has been removed. See
https://plugins.trac.www.ads-software.com/changeset/1755718/custom-css-js-php/trunk/custom-css-js-php.php?old=1548949&old_path=custom-css-js-php%2Ftrunk%2Fcustom-css-js-php.php
I’m not very experienced in wordpress, so maybe I’m wrong, but at least it doesn’t work for me any longer.
]]>Hi,
When I enter a backslash such as ‘O\’brien’ or “O\’brien” the editor removes the ‘\’. How doo I enter a literal character such as ‘
Many thanks
]]>Hello, I have this code, which works very well by jsut adding it to the functions php.. except in this case I am now uing a system (oxygenapp) that does not rely on a theme thus no child-theme and functions.php
How can I use lour plugin to make this work ?!?
I need this toi be global, not shortcode based.
I don’t imagine qnyone will answer but then again .. who knows..
____________________________
function jquery_parallax() {
?>
<script language=”JavaScript” type=”text/javascript”>
;(function($) {
‘use strict’
var testMobile;
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
Opera: function() {
return navigator.userAgent.match(/Opera Mini/i);
},
Windows: function() {
return navigator.userAgent.match(/IEMobile/i);
},
any: function() {
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
}
};
var parallax = function() {
testMobile = isMobile.any();
if (testMobile == null) {
$(“.parallax”).parallax(“50%”, 0.3);
}
};
// Dom Ready
$(function() {
parallax();
});
})(jQuery);
/*
jQuery Parallax 1.1.3
Author: Ian Lunn
Plugin URL: https://www.ianlunn.co.uk/plugins/jquery-parallax/
Dual licensed under the MIT and GPL licenses:
https://www.opensource.org/licenses/mit-license.php
https://www.gnu.org/licenses/gpl.html
*/
!function(n){var t=n(window),e=t.height();t.resize(function(){e=t.height()}),n.fn.parallax=function(o,r,i){function u(){var i=t.scrollTop();l.each(function(t,u){var l=n(u),f=l.offset().top,s=a(l);i>f+s||f>i+e||l.css(“backgroundPosition”,o+” “+Math.round((l.data(“firstTop”)-i)*r)+”px”)})}var a,l=n(this);l.each(function(t,e){$element=n(e),$element.data(“firstTop”,$element.offset().top)}),a=i?function(n){return n.outerHeight(!0)}:function(n){return n.height()},(arguments.length<1||null===o)&&(o=”50%”),(arguments.length<2||null===r)&&(r=.1),(arguments.length<3||null===i)&&(i=!0),t.bind(“scroll”,u).resize(u),u()}}(jQuery);
</script>
<?php
}
if (!(is_admin())) {
wp_enqueue_script(‘jquery’);
add_action(‘wp_head’, ‘jquery_parallax’);
}
Hi Admin,
I have a code written in php e.g. <?php echo(“hello world”); ?>
In my text editor on my word press page i have a text box that i want the value to be the output of my code
e.g.
<input type=”text” value='[wce_code id=4]’ />
where [wce_code id=4] is the shortcode for my php code.
Please help on how to go about that
]]>Hello,
I have this warning ?? :
wp-content/plugins/custom-css-js-php/core/class.initiate-core.php:32
Stack :
FlipperCode_Initialise_Core->_init()
wp-content/plugins/custom-css-js-php/core/class.initiate-core.php:23
FlipperCode_Initialise_Core->__construct()
wp-content/plugins/custom-css-js-php/core/class.initiate-core.php:345
WP_CustomCode_Pro->_load_files()
wp-content/plugins/custom-css-js-php/custom-css-js-php.php:45
WP_CustomCode_Pro->__construct()
wp-content/plugins/custom-css-js-php/custom-css-js-php.php:681
Maybe something to fix!
Thanks
]]>run filters and action at plugins_loaded so that init and other earlier filters and actions can be used.
Thanks
Consider adding a settings page to give the option of running in admn.
Thanks.
The is no color formatting to the code as its in the screenshots.
i would have loved it to be so as it is in the screenshots.
Thanks
I installed custom-css-js-php to our multisite wordpress. The v2.0.2 plugin installs but I can only manage the custom code on a single site. The plugin is available/shows up on all sites and I can go through the process of adding some js and I get the “code added successfully” message. But when I go to manage js there is nothing listed.
]]>I get a 500 error if I enter JS. ??
]]>Hi,
On activating plugin am getting the following error in php7.0 error log:
WordPress database error Incorrect index name ” for query ALTER TABLE prefix_wp__wce_editor_content ADD UNIQUE KEY (
id
) made by activate_plugin, do_action(‘activate_custom-css-js-php/custom-css-js-php.php’), WP_CustomCode_Pro->plugin_activation, WP_CustomCode_Pro->wcjp_activation, dbDelta
Thanks in advance
Phil
testing with simple phpinfo() directive, just returns “phpinfo()” oh well
]]>Hi,
After migration of a WordPress installation from subfolder to root I can edit and update a file in All Custom Code section but I can’t see the changes in front end. I noticed that there isn’t table in database with plugin’s name.
How can I fix this issue?
Thanks!
]]>Hi dear
I like me suggest bakcups of the codes
Thanks
]]>Hi,
Can you tell me how you might include some JS noscript options?
Thanks,
Cody
]]>Hey,
I running a small section of code using your plugin, however for some reason I add code, but when I click save it has changed my code and removed a “\” character
This is my code
preg_replace('/\s+/', '', $postcode);
but it changes it to:
preg_replace('/s+/', '', $postcode);
Any ideas why the plugin would be ignoring the \ in /\s+/ ?
]]>I’ve just installed and activated this plugin but I cannot see how to use it.
Where do I create the PHP code and how do I add it to a page would be a great place to start
Thanks
]]>Hi Flipper Code,
Seeing the following notice in php5.6 error log:
“[13-Feb-2016 18:23:41 UTC] PHP Notice: Use of undefined constant WCJP_CLASSES – assumed ‘WCJP_CLASSES’ in /wp-content/plugins/custom-css-js-php/custom-css-js-php.php on line 610”
Plus as already mentioned by buylov you have to add “” around number to see results e.g. [wce_code id=”1″]
Cheers,
Phil
Hi, please how can I completely uninstall this plugin?
I have added some php codes related with Gravity Forms.
Problem is when I uninstall this plugin, Gravity Forms does not work fine.
If I install this plugin again, Gravity Forms works fine again.
So, what should I delete besides uninstalling this plugin?
Thank you very much.
]]>Hi… thank you for this great plugin.
With 2.0 version Gravity Forms fields will not expand to edit. Finally I found that. I had to downgrade to 1.2 version and now everything is ok again. If you need more info to reproduce the issue just tell me.
Regards.
]]>Standart shortcodes [wcjp_code id=1] do not work. Only works as follows: [wce_code id=”1″].
]]>I’m getting this error message after updating it to the latest version.
The plugin custom-css-js-php/css-js-php.php has been deactivated due to an error: Plugin file does not exist.
When I open the editor in “manage CSS” to modify an existing file, the file name input fields appears empty. The file name must be entered again for “save” to work. A fix would be nice ??
]]>Hi, thanks for the awesome plugin.
Just one quick question – how do you pass parameters and specify the priority of the action/filter for custom PHP code? We’re allowed to type the filter name above, and the code in the box below. There’s no provision for additional parameters.
Am I missing something?
]]>I am trying to run a new javascript with this line: document.getElementById(“phpcode”).innerHTML=”<?php echo ‘123456789’;?>”;}
I saved the script with wp_head option and it exports in the browser hidden <!–?php echo ‘123456789’;?–>, instead of visually 123456789.
how I can run the PHP code under Javascript?
]]>I am trying to export my css to move it from my development environment to production, but the export file is not writing anything. It exports a zero byte file even though I have several custom css entries under manage. This is a huge isuue.
]]>