Form Send Blocks
An overview of the features is below. – Provides three blocks: a form that houses a custom block for input, a form that confirms the input content, and a form that displays the results when the form is submitted. – We provide a block that sends the content entered from the input block as a notification email to the set administrator and as an automatic response email to the user who entered it. – It has a function to store the entered contents in the WordPress database. Below is an overview of the functions of each block. 1.Input figure This block is a block that stores Design Text Control, Design CheckBox, Design Select, and Design Button of BLOCK COLLECTIONS as an inner block and generates a submission form. Blocks other than these cannot be stored, but there are no particular restrictions on the number. Confirm figure This block checks the contents entered in the Input Figure and generates a form for sending. Display your entries in a table for confirmation. Then click the submit button to submit the form. 3.Thanks Figure This is a block that generates a form to display the submission results. You can set the text of the transmission result and display its contents. You can set a fixed redirect page for the placed button. Contact Mail Sender This block stores the Design Process of Input Figure, Confirm Figure, Thanks Figure, and BLOCK COLLECTIONS as an inner block and generates an inquiry page by email. We will send an email notifying you of the inquiry from the web page where this block is placed, as well as an automatic response email to the web page viewer who made the inquiry. This content can be stored in the WordPress database, but the current version does not have the ability to display this content. This is a feature for future version upgrades. Related Links Github source code block-class-package:GitHub block-class-package:Packagist itmar-block-packages:npm itmar-block-packages:GitHub Arbitrary section Style settings that may require responsive support can be set separately for desktop mode (displayed on devices with a width of 768px or more) and mobile mode (displayed on devices with a width of 767px or less). To tell which setting is set, when you switch the display mode in the block editor or site editor, “(Desktop)” and “(Mobile)” will be displayed in the side menu display. Please note that responsiveness for tablet display is not supported. This plugin depends on the BLOCK COLLECTIONS plugin. This plugin requires installation and activation in order to use it. Regarding the display of text, etc., settings are made using WordPress’s internationalization function, so it is possible to display text in multiple national languages. Currently, English and Japanese notation is possible. The Contact Mail Sender block uses jquery.easing for screen transition animation. Therefore, when using this block, please comply with the following terms of use. jquery.easing/LICENSE-BSD-3-Clause.txt We use wp_mail for email sending. Therefore, when sending emails from a local environment, it is necessary to install a plugin that provides an SMTP environment such as WP Mail SMTP by WPForms. Is required. PHP class management is now done using Composer. GitHub Packagist I decided to make functions and components common to other plugins into npm packages, and install and use them from npm. npm GitHub
Top keywords
- block18×3.25%
- display9×1.63%
- form8×1.45%
- figure7×1.27%
- email6×1.08%
- input6×1.08%
- design5×0.90%
- github5×0.90%
- set5×0.90%
- content4×0.72%
- entered4×0.72%
- generates4×0.72%
WP-EMail
WP-EMail puts an “Email This Post” link on your posts and pages. A visitor clicking it gets a small form, fills in their name, their friend’s name and address and an optional remark, and the article goes out through wp_mail() — so it uses whatever WordPress itself is set up to send with. Every message is logged, so you can see what was sent, to whom, from which address and whether it arrived. The page title, the subject line, the HTML body, the plain text body and every message the visitor sees are templates you can edit, each with its own list of variables and a button to put the original back. Features An “Email This Post” link built from an HTML template you edit, with the envelope glyph, the wording and the post type as variables A standalone e-mail page or a popup window HTML or plain text messages, with the article whole or cut to a word count Image verification, and a minimum interval between sends, to keep the form off spammers’ lists A sortable, paginated log of every message, with totals and a one-click purge A widget and template tags for the most emailed posts and pages A block on the WP-Stats page, if you have WP-Stats installed Donations I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations. Usage The plugin works as soon as it is activated. All you have to decide is where the e-mail link appears. On selected posts and pages, type the shortcode into the content: [email_link] This works in both block and classic themes, and puts the link exactly where you want it rather than on everything. On every post and page, call the template tag from your theme instead. In a classic theme, open wp-content/themes/ /index.php — or single.php, page.php, and so on — find: and add this inside the loop, where you want the link to show: Use one or the other, not both, or the link appears twice. If the link is there but clicking it gives a 404, re-save your permalinks under WP-Admin -> Settings -> Permalinks. The plugin registers its /email/ endpoint on activation, but a site with unusual rewrite rules can need the nudge. Everything else is configured under WP-Admin -> E-Mail -> Settings, which has two tabs: Settings for the link, the form and delivery, and Templates for the eight message templates. The log of what has been sent is under WP-Admin -> E-Mail -> Manage E-Mail. Filters Use wp_email_capability to hand a screen to a capability other than the default. The logs screen is gated on manage_email and the settings screen on manage_options: add_filter( 'wp_email_capability', function ( $capability, $context ) { return 'logs' === $context ? 'edit_posts' : $capability; }, 10, 2 ); Use wp_email_form_field_values to pre-fill the form. The plugin uses it itself to fill in a logged-in visitor’s name and address: add_filter( 'wp_email_form_field_values', function ( $values ) { $values['yourremarks'] = 'Thought you would like this.'; return $values; } ); The other three are wp_email_ipaddress (the address a send is attributed to), wp_email_template_redirect (whether the plugin takes over the request for its own endpoints) and wp_email_trust_proxy (whether the usual forwarding headers may be trusted).