Este plugin non se actualizou en máis de 2 anos. É posible que xa non sexa compatible ou mantido por ninguén, ou podes ter problemas de compatibilidade cando se usa con novas versións de WordPress.

Plugin Name: Custom PHP Codes

Descrición

This plugin helps you to execute custom php codes in your wordpress posts and widgets. Only codes that has been approved by admin can be used for executing php codes in pages or widgets any new code is first shown to admin prior to it’s execution on the front end.

Capturas

  • Copy customphpcodes folder in /wp-content/plugins/ directory.
  • Simple click to activate the plugin.
  • Open Custom PHP Codes -> Custom Settings page to configure the plugin.
  • Enable the features of plugin to Only allow admin enabled queries on front end and to Save custom PHP Codes in database.
  • Now place your custom php code using following tags [php_code] [/php_code].
  • Now preview your code on the front end although it will not display your code but it will log for approval by admin. Please note : Your code will not execute nor it will be visible on front end but it will be logged for admin approval.
  • Now open Custom PHP Codes -> Custom PHP Codes to allow your custom php code for execution.
  • Allow your Custom PHP Codes for execution.
  • Now your Custom PHP Codes will excute and it’s results will be visible on front end.

Instalación

This section describes how to install the plugin and get it working.

e.g.

  1. Upload the plugin files to the /wp-content/plugins/customphpcodes directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Custom PHP Codes -> Custom Settings to configure the plugin
  4. In your posts or widget place your php code with following tags [php_code] Your Code Here [/php_code]
  5. Now preview your custom php code of your widget or post in front end to log it for approval in admin panel.
    Please note : Your code will nor execute and nor it will be visible on front end but it will be logged for admin approval.
  6. Use the Custom PHP Codes -> Custom PHP Codes to allow your custom php code to execute on front end.
  7. Your Custom PHP Code should be visible on front end.

Preguntas frecuentes

What’s the sytax to enclose custom php code ?

You can enclose your custom php code in following tags [php_code] [/php_code]

I can’t find my custom php code to allow in Custom PHP Codes page , how can I add it here ?

It would be added automatically once you preview your custom php code enclosed in tags on front end, although it will not execute nor it will be visible on frontend but it will be logged for approval on Custom PHP Codes Page.

Comentarios

Non hai recensións para este plugin.

Colaboradores e desenvolvedores

“Plugin Name: Custom PHP Codes” é un software de código aberto. As seguintes persoas colaboraron con este plugin.

Colaboradores

Traduce “Plugin Name: Custom PHP Codes” ao teu idioma.

Interesado no desenvolvemento?

Revisa o código, bota unha ollada aorepositorio SVN, ou subscríbete ao log de desenvolvemento por RSS.

Rexistro de cambios

1.0

  • Support for Posts & Widgets
  • Enhanced Custom PHP Codes Log for admin to allow/disallow codes for execution.