=== My Custom Functions === Contributors: Arthur Gareginyan Tags: code, php, function, snippet, custom, execute, edit, editing, editor, functionality plugin, codemirror, syntax highlighting, syntaxhighlighting, syntax highlighter, syntaxhighlighter, syntax, highlighting, highlighter, Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS Requires at least: 3.9 Tested up to: 4.5 Stable tag: 2.1 License: GPL3 License URI: http://www.gnu.org/licenses/gpl-3.0.html Easily and safely add your own functions, snippets or any custom codes directly out of your WordPress Dashboard without need of an external editor. == Description == An easy to use WordPress plugin that lets you easily and safely add your own functions, snippets or any custom codes for execution in WordPress environment directly out of your WordPress Dashboard without any need of an external editor. It’s purpose is to provide a familiar experience to WordPress users. No need any more editing the functions.php file of your theme. Just add your code in the field on the page and this plugin will do the rest for you. No any more "Fatal error". These codes will run safely and will not generate fatal errors, so your website won't break if you make a typo in your code. And your website will keep on working, no matter how many times you upgrade or switch your theme. This is a simple and perfect tool to use as your site's functionality plugin. = Features = **Current features:** * Safety execution code (Checks the entered code for fatal errors) * Syntax highlighting (by CodeMirror) * Line numbering (by CodeMirror) * Input areas allow for tab indentation * Ready for translation (.pot file included) * Russian translation * CodeMirror scripts are combined and minified **Coming soon:** * Trigger to temporary disable the custom code * Backuping the custom code to a file >**Contribution** > >Developing plugins is long and tedious work. If you benefit or enjoy this plugin please take the time to: > >* Please [donate](http://www.arthurgareginyan.com/donate.html) to support ongoing development. Your contribution would be greatly appreciated. >* Please take the time to [rate and review](https://wordpress.org/support/view/plugin-reviews/my-custom-functions?rate=5#postform) this plugin. >* Please [share with me](mailto:arthurgareginyan@gmail.com) if you have any ideas or suggestions to make this plugin better. == Installation == Install "My Custom Functions" just as you would any other WordPress Plugin. Automatically via WordPress: 1. Log into WordPress Dashboard of your website. 2. Go to "`Plugins`" —> "`add new plugins`". 3. Find this plugin and click install. 4. Activate this plugin through the "`Plugins`" tab. Manual via FTP: 1. Download a copy (zip file) of this plugin from WordPress.org. 2. Unzip the zip file. 3. Upload the unzipped directory to your website's plugin directory (`/wp-content/plugins/`). 4. Log into WordPress Dashboard of your website. 5. Activate this plugin through the "`Plugins`" tab. After installation, a "`Custom Functions`" menu item will appear in the "`Appearance`" section. Click on this in order to view plugin's administration page. [More help installing Plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins "WordPress Codex: Installing Plugins") == Frequently Asked Questions == = Q. Will this Plugin work on my WordPress.COM website? = A. Sorry, this plugin is available for use only on self-hosted (WordPress.org) websites. = Q. How much of PHP code (characters) I can enter in the text field? = A. I don't limit the number of characters. = Q. Can I use this plugin on my language? = A. Yes. But If your language is not available then you can make one. This plugin is ready for translation. The `.pot` file is included and placed in "`languages`" folder. Many of plugin users would be delighted if you shared your translation with the community. Just send the translation files (`*.po, *.mo`) to me at the arthurgareginyan@gmail.com and I will include the translation within the next plugin update. = Q. Does this plugin require modification to the theme? = A. Absolutely not. This plugin is added/configured entirely from the website's Admin section. = Q. It's not working. What could be wrong? = A. As with every plugin, it's possible that things don't work. The most common reason for this is that the plugin has a conflict with another plugin you're using. It's impossible to tell what could be wrong exactly, but if you post a support request in the plugin's support forum on WordPress.org, I'd be happy to give it a look and try to help out. Please include as much information as possible, including a link to your website where the problem can be seen. = Q. What to do if this plugin caused the white screen? = A. This plugin is not perfect, so there are times when the entered custom code causes the error and white screen. If this happened with you then do the following. Your code stored in the Database of your web-site. For getting your code, you can go to the `Database` —> Table "`wp_options`" —> Option "`anarcho_cfunctions_settings`" —> "`option_value`". Or you can use the FTP method, for access to plugin's settings page. Go to plugin's folder (in `wp-content/plugins/`). Open "`my-custom-functions.php`" file. Find this line of code: `MCFunctions_exec();` and comment it by placing two slashes (`//`) in beginning. Then you can go to plugin's settings page and edit your entered custom code. After editing, just delete two slashes which you written before. = Q. Where to report bug if found? = A. Please visit [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/my-custom-functions) and report. = Q. Where to share any ideas or suggestions to make the plugin better? = A. Please send me email [arthurgareginyan@gmail.com](mailto:arthurgareginyan@gmail.com). = Q. I love this plugin! Can I help somehow? = A. Yes, any financial contributions are welcome! Just visit my website and click on the donate link, and thank you! [My website](http://www.arthurgareginyan.com/donate.html) == Screenshots == 1. Plugin’s page. 2. Plugin’s page with custom code added. 3. Success message. 4. «Fatal error» message. == Other Notes == "My Custom Functions" is one of the personal software projects of [Arthur Gareginyan](http://www.arthurgareginyan.com). **License** This plugin is licensed under the [GNU General Public License, version 3 (GPLv3)](http://www.gnu.org/licenses/gpl-3.0.html) and is distributed free of charge. Commercial licensing (e.g. for projects that can’t use an open-source license) is available upon request. **Credits** [CodeMirror](https://codemirror.net/) is an open-source project shared under an [MIT license](https://codemirror.net/LICENSE). **Links** * [Developer Website](http://www.arthurgareginyan.com) * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/my-custom-functions) == Changelog == = 2.2 = * Added Chinese (Taiwan) translation. (Thanks Gordon Yu) * Text domain changed to "my-custom-functions". * Added compatibility with the translate.wordpress.org. = 2.1 = * In the settings_page.php, on the line 21, fixed typo. * Removed extra rules in style.css file. * All images are moved to the directory "images". * Image "btn_donateCC_LG.gif" is now located in the "images" directory. = 2.0 = * New design of settings page (new layout). * Constants variables added. * editor.js deleted. * js-functions.js (file with all js functions) created. * Prefixes changed to "MCFunctions". * Text domain changed to "MCFunctions". * Plugin URI changed to GitHub repository. * Added my personal ad about freelance. * .pot file updated. * Russian translation updated. = 1.9 = * Authors URI changed. * Donate link changed. * Localization improved. * .pot file updated. * Russian translation updated. = 1.8 = * The mode of CodeMirror editor changed from 'application/x-httpd-php' (HTML+PHP) to 'text/x-php' (PHP). * Placeholder of