This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* DON'T copy the first line (above) if your functions.php already has it. | |
* ---------------------------------------------------------------------- */ | |
function my_et_theme_setup() { | |
if ( class_exists( 'ET_Builder_Module_Blog' ) ) { | |
get_template_part( 'my-main-modules' ); | |
$et_pb_blog = new My_ET_Builder_Module_Blog(); | |
remove_shortcode('et_pb_blog'); | |
add_shortcode('et_pb_blog', array( $et_pb_blog, '_shortcode_callback' ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| 5 Star Rating | |
|-------------------------------------------------------------------------- | |
| | |
| Lower bound of Wilson score confidence interval for a Bernoulli parameter (0.9604) | |
| | |
| See: |
We've been building a hooks based REST API wrapper.
A specific use case discussed in this gist is – how do you close a modal after updating a remote resource completes succesfully?
Which of the following options seems best or is there a better approach altogether?
function EditNoteModal ({ id, onClose }) {