One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
<?php | |
/** | |
* Code taken from the plugin 'Remove Comments Absolutely' by Frank Bültge | |
* http://wpengineer.com/2230/removing-comments-absolutely-wordpress/ | |
* https://github.com/bueltge/Remove-Comments-Absolutely/blob/master/remove-comments-absolute.php | |
* http://bueltge.de/ | |
*/ | |
if ( ! class_exists( 'Remove_Comments_Absolute' ) ) { | |
add_action( 'plugins_loaded', array( 'Remove_Comments_Absolute', 'get_object' ) ); |
<?php | |
/** | |
* Make Elementor the default editor, not the WordPress Editor (Gutenberg or Classic) | |
* Clicking the page title will take you to the Elementor editor directly | |
* Even non-Elementor-edited pages will become Elementor-edited pages now | |
* You can revert by clicking the "Back to WordPress Editor" button | |
* | |
* Author: Joe Fletcher, https://fletcherdigital.com | |
* URL: https://gist.github.com/heyfletch/7c59d1c0c9c56cbad51ef80290d86df7 |
<?php | |
add_filter( 'render_block', 'custom_wrap_html_block_output', 10, 2 ); | |
/** | |
* Wrap output of HTML blocks. | |
* | |
* @param string $block_content Original block content. | |
* @param array $block Block info. | |
* @return string The block content with a wrapper. | |
*/ |
<?php | |
//====================================================================== | |
// Add post state to the projects page | |
//====================================================================== | |
add_filter( 'display_post_states', 'ecs_add_post_state', 10, 2 ); | |
function ecs_add_post_state( $post_states, $post ) { |
<?php | |
/** | |
* Plugin Name: Elementor Form Additional Webhook | |
* Plugin URI: https://coreysalzano.com/ | |
* Description: Adds a second Webhook to the Lot Wizard trial signup form | |
* Version: 1.0.0 | |
* Author: Corey Salzano | |
* Author URI: https://github.com/mistercorey | |
* License: GPLv2 or later | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
<?php | |
/** | |
* Restore CSV upload functionality for WordPress 4.9.9 and up | |
*/ | |
add_filter('wp_check_filetype_and_ext', function($values, $file, $filename, $mimes) { | |
if ( extension_loaded( 'fileinfo' ) ) { | |
// with the php-extension, a CSV file is issues type text/plain so we fix that back to | |
// text/csv by trusting the file extension. | |
$finfo = finfo_open( FILEINFO_MIME_TYPE ); | |
$real_mime = finfo_file( $finfo, $file ); |
<?php | |
/** | |
* gets the current post type in the WordPress Admin | |
*/ | |
function get_current_post_type() { | |
global $post, $typenow, $current_screen; | |
//we have a post so we can just get the post type from that | |
if ( $post && $post->post_type ) { | |
return $post->post_type; |
<?php | |
echo get_post_field('post_content', $post_id); // retrieve content | |
echo get_post_field('post_name', $post_id); // retrieve the slug | |
?> |
<?php | |
/** | |
* Style pagination to look like Genesis. | |
* | |
* @version 1.0.0 | |
* | |
* @author Mike Hemberger @JiveDig | |
* | |
* @link https://halfelf.org/2017/facetwp-genesis-pagination/ |