View maybe-add-post-states-for-blocks.php
<?php | |
/** Do NOT include the opening php tag */ | |
if ( ! function_exists( 'ddw_cf_maybe_add_post_state_blocks' ) ) : | |
add_filter( 'display_post_states', 'ddw_cf_maybe_add_post_state_blocks', 10, 2 ); | |
/** | |
* Adds optional new post states if a Post has Blocks, has the "Classic" Block or no Blocks at all. | |
* |
View sermon-manager-german-bibles.php
<?php | |
/** Do NOT include the opening php tag */ | |
if ( ! function_exists( 'ddw_sm_bible_selection' ) ) : | |
add_filter( 'sm_verse_settings', 'ddw_sm_bible_selection' ); | |
/** | |
* Plugin: Sermon Manager for WordPress | |
* For "Verse" settings add German bible versions from biblia.com |
View inc-remove-comments.php
<?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' ) ); |
View elementor-remove-wp-widgets.php
<?php | |
/** Do NOT include the opening php tag */ | |
if ( ! function_exists( 'ddw_tweak_elementor_remove_wp_widgets' ) ) : | |
add_filter( 'elementor/widgets/black_list', 'ddw_tweak_elementor_remove_wp_widgets' ); | |
/** | |
* Optionally remove all WordPress widgets from the Elementor Live Editor. | |
* Note: A native Elementor filter is used. |
View make-elementor-default-editor.php
<?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 |
View functions.php
<?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. | |
*/ |
View wp-admin-add-posts-state.php
<?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 ) { |
View elementor-form-additional-webhook.php
<?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 |
View tbex-custom-cap-unloading-translations.php
<?php | |
/** Do NOT include the opening php tag */ | |
if ( function_exists( 'tbex_capability_unloading_translations' ) ) : | |
add_filter( 'tbex_filter_capability_unloading_translations', 'tbex_capability_unloading_translations' ); | |
/** | |
* Set a custom capability for the Smart Tweak feature for unloading certain translations. | |
* This filter is available since Toolbar Extras version 1.3.9 | |
* |
NewerOlder