Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <?php | |
| function no_comment_notes($fields) { | |
| $fields['comment_notes_after'] = ''; | |
| return $fields; | |
| } | |
| add_filter('comment_form_defaults', 'no_comment_notes'); |
Prerequisites:
Software components used:
| <?php | |
| function myprefix_kses_allowed_tags($input){ | |
| return array_merge( $input, array( | |
| // paragraphs | |
| 'p' => array( | |
| 'style' => array() | |
| ), | |
| 'span' => array( | |
| 'style' => array() | |
| ), |
| <?php | |
| /** | |
| * If your theme or plugin has a page template that | |
| * uses widgets to build the layout, users might be | |
| * confused as to why the standard editor doesn't | |
| * work as expected. This will disable the editor | |
| * and introduce a notice explaining its absence. | |
| * | |
| * @author FAT Media <http://youneedfat.com> | |
| * @copyright Copyright (c) 2013, FAT Media, LLC |
The old "built" repository:
svn checkout https://core.svn.wordpress.org/trunkThe new hotness repository:
svn checkout https://develop.svn.wordpress.org/trunk| <?php | |
| /** | |
| * Permit anyone to post HTML in the comments | |
| * Because ThunderP2 is only accessible by qualified users, | |
| * this is just fine. | |
| */ | |
| add_action( 'init', function() { | |
| remove_filter( 'pre_comment_content', 'wp_filter_kses' ); | |
| add_filter( 'pre_comment_content', 'wp_filter_post_kses' ); |
| # This is a template .gitignore file for git-managed WordPress projects. | |
| # | |
| # Fact: you don't want WordPress core files, or your server-specific | |
| # configuration files etc., in your project's repository. You just don't. | |
| # | |
| # Solution: stick this file up your repository root (which it assumes is | |
| # also the WordPress root directory) and add exceptions for any plugins, | |
| # themes, and other directories that should be under version control. | |
| # | |
| # See the comments below for more info on how to add exceptions for your |
This is a simplified showcase of how you can easily build your own Optin form in WordPress.
It can connect to any API that supports cURL (most of them do). There is no error reporting implemented. It uses exit intent detection script called Ouibounce, which needs to be enqueued in your functions.php
See the tutorial here: How to build your own WordPress email form
| # This is a template .gitignore file for git-managed WordPress projects. | |
| # | |
| # Fact: you don't want WordPress core files, or your server-specific | |
| # configuration files etc., in your project's repository. You just don't. | |
| # | |
| # Solution: stick this file up your repository root (which it assumes is | |
| # also the WordPress root directory) and add exceptions for any plugins, | |
| # themes, and other directories that should be under version control. | |
| # | |
| # See the comments below for more info on how to add exceptions for your |