foo
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'ninja_forms_enqueue_scripts', 'my_pikaday_modifications' );
|
||||
function my_pikaday_modifications() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_pikaday_legend' );
|
||||
function my_pikaday_legend() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_dash_redirect' );
|
||||
function my_dash_redirect() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_add_freemium_indicator' );
|
||||
function my_add_freemium_indicator() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_aktive_snipes_buttons' );
|
||||
function my_aktive_snipes_buttons() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_confetti' );
|
||||
function my_confetti() {
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_failed_request_logged_out' );
|
||||
function my_failed_request_logged_out() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
class HelperFunctions {
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_global_helper_functions' );
|
||||
function my_global_helper_functions() {
|
||||
|
||||
34
src/snippets/hide_mpr_activation_error.php
Normal file
34
src/snippets/hide_mpr_activation_error.php
Normal 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
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* @tag my_ninja_forms_processing
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_inactivity_refresh' );
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_login_redirect' );
|
||||
function my_login_redirect() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_thank_you_redirect' );
|
||||
function my_thank_you_redirect() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'pre_menu_indicator' );
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter('wp_nav_menu_items', 'add_last_nav_item');
|
||||
function add_last_nav_item($items) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_action('mepr-event-member-added','my_mepr_event_member_added');
|
||||
function my_mepr_event_member_added($userObj) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_action('mepr-event-member-deleted','my_mepr_event_member_deleted');
|
||||
function my_mepr_event_member_deleted($userObj) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_action( 'admin_enqueue_scripts', 'my_hide_memberpressactivate' );
|
||||
function my_hide_memberpressactivate() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'mycred_transfer_render', 'mycredpro_disable_transfer_autocomplete' );
|
||||
function mycredpro_disable_transfer_autocomplete( $transfer_shortcode ) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'mycred_buycred_get_cost', 'mycredpro_buyred_volume_pricing', 10, 2 );
|
||||
function mycredpro_buyred_volume_pricing( $cost, $amount ) {
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'ninja_forms_enqueue_scripts', 'hook_javascript_40' );
|
||||
function hook_javascript_40() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'postcreator' );
|
||||
function postcreator () {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_redirect_mobile' );
|
||||
function my_redirect_mobile() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_login_hook' );
|
||||
function my_login_hook() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'php_console_log_page_id' );
|
||||
function php_console_log_page_id() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
?>
|
||||
<?php
|
||||
add_filter( 'wp_enqueue_scripts', 'my_ninja_forms_page_id' );
|
||||
function my_ninja_forms_page_id() {
|
||||
|
||||
Reference in New Issue
Block a user