This commit is contained in:
zino
2021-02-16 01:42:26 +01:00
parent a4d4e1f583
commit 1776251129
32 changed files with 37 additions and 33 deletions

View File

@@ -1,4 +1,3 @@
?>
<?php
add_action('wp_enqueue_scripts', "hook_javascript_2");
function hook_javascript_2() {
@@ -11,7 +10,9 @@ function hook_javascript_2() {
document.getElementById("user_first_name1").setAttribute('maxLength', '20');
document.getElementById("user_last_name1").setAttribute('maxLength', '20');
document.getElementById("mepr_telefon_mobil1").setAttribute('maxLength', '15');
document.getElementById("user_email1").setAttribute('maxLength', '50');
// FIXME: We need to wait for element
// document.getElementById("user_email1").setAttribute('maxLength', '50');
if( jQuery('#mepr_user_password1').length )
document.getElementById("mepr_user_password1").setAttribute('maxLength', '50');
@@ -22,7 +23,6 @@ function hook_javascript_2() {
});
// END JAVASCRIPT
</script>
?>
<?php
}
else if (page_id() === 986) {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'ninja_forms_enqueue_scripts', 'my_pikaday_modifications' );
function my_pikaday_modifications() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_pikaday_legend' );
function my_pikaday_legend() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_dash_redirect' );
function my_dash_redirect() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_add_freemium_indicator' );
function my_add_freemium_indicator() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_aktive_snipes_buttons' );
function my_aktive_snipes_buttons() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_confetti' );
function my_confetti() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'mepr-wp-mail-subject', function( $subject, $recipients, $message, $headers ) {
if ( strpos( $subject, '[Bürgeramt Terminsnipe | Sofort. Termin. Berlinweit.] Set Your New Password') !== false ) {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_failed_request_logged_out' );
function my_failed_request_logged_out() {

View File

@@ -1,4 +1,3 @@
?>
<?php
class HelperFunctions {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_global_helper_functions' );
function my_global_helper_functions() {

View File

@@ -0,0 +1,34 @@
<?php
add_action( 'admin_enqueue_scripts', 'my_hide_memberpressactivate' );
function my_hide_memberpressactivate() {
?>
<script>
// START JAVASCRIPT
document.addEventListener("DOMContentLoaded", function(event) {
console.log('executing now');
//wait_for_class('error', 'hide_mbpr_error');
hide_mbpr_error();
});
function hide_mbpr_error() {
if( jQuery('.error').length ) {
if( jQuery('.error')[0].textContent == "MemberPress doesn't have a valid license key installed. Go to the MemberPress activation page to activate your license or go to memberpress.com to get one." ) {
jQuery('.error')[0].outerHTML = '';
}
}
}
function wait_for_class(selector, fnName) {
if (jQuery('.' + selector).length) {
console.log('ready');
window[fnName](selector);
} else {
setTimeout(function() {
wait_for_class(selector, fnName);
}, 100);
}
}
// END JAVASCRIPT
</script>
<?php
}

View File

@@ -1,4 +1,3 @@
?>
<?php
/**
* @tag my_ninja_forms_processing

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_inactivity_refresh' );

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_login_redirect' );
function my_login_redirect() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_thank_you_redirect' );
function my_thank_you_redirect() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'pre_menu_indicator' );

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter('wp_nav_menu_items', 'add_last_nav_item');
function add_last_nav_item($items) {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_action('mepr-event-member-added','my_mepr_event_member_added');
function my_mepr_event_member_added($userObj) {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_action('mepr-event-member-deleted','my_mepr_event_member_deleted');
function my_mepr_event_member_deleted($userObj) {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_action( 'admin_enqueue_scripts', 'my_hide_memberpressactivate' );
function my_hide_memberpressactivate() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'mycred_transfer_render', 'mycredpro_disable_transfer_autocomplete' );
function mycredpro_disable_transfer_autocomplete( $transfer_shortcode ) {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'mycred_buycred_get_cost', 'mycredpro_buyred_volume_pricing', 10, 2 );
function mycredpro_buyred_volume_pricing( $cost, $amount ) {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'ninja_forms_render_default_value', 'my_change_nf_default_value', 10, 3 );
function my_change_nf_default_value( $default_value, $field_type, $settings ) {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter('ninja_forms_render_options','ninja_forms_pre_population_callback_rest_api', 10, 2);
function ninja_forms_pre_population_callback_rest_api($options, $settings) {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter('ninja_forms_render_options','ninja_forms_pre_population_callback', 10, 2);
function ninja_forms_pre_population_callback($options, $settings) {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'ninja_forms_enqueue_scripts', 'hook_javascript_40' );
function hook_javascript_40() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'postcreator' );
function postcreator () {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_redirect_mobile' );
function my_redirect_mobile() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_login_hook' );
function my_login_hook() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'php_console_log_page_id' );
function php_console_log_page_id() {

View File

@@ -1,4 +1,3 @@
?>
<?php
add_filter( 'wp_enqueue_scripts', 'my_ninja_forms_page_id' );
function my_ninja_forms_page_id() {