Give export capability to administrator
$admin_role = get_role(‘administrator’); $admin_role->add_cap(‘export’, true);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
$admin_role = get_role(‘administrator’); $admin_role->add_cap(‘export’, true);Continue reading
{“code”:”qm_fatal”,”message”:”Uncaught Exception: Failed to parse time string (30/05/2025) at position 0 (3): Unexpected character in /var/www/inkontaktbringer.de/htdocs/wp-content/plugins/flowmattic/inc/apps/tables/class-flowmattic-tables.php on line 1167″,”data”:{“message”:”Uncaught Exception: Failed to parse time string (30/05/2025) at position 0 (3): Unexpected character”,”file”:”/var/www/inkontaktbringer.de/htdocs/wp-content/plugins/flowmattic/inc/apps/tables/class-flowmattic-tables.php”,”line”:1167,”trace”:[{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-content/plugins/flowmattic/inc/apps/tables/class-flowmattic-tables.php”,”line”:1167,”function”:”__construct”,”class”:”DateTime”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-content/plugins/flowmattic/inc/apps/tables/class-flowmattic-tables.php”,”line”:797,”function”:”format_record_data”,”class”:”FlowMattic_Table”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-content/plugins/flowmattic/inc/apps/tables/class-flowmattic-tables.php”,”line”:462,”function”:”find_record”,”class”:”FlowMattic_Table”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-content/plugins/flowmattic/inc/class-flowmattic-workflow.php”,”line”:1439,”function”:”run_action_step”,”class”:”FlowMattic_Table”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-content/plugins/flowmattic/inc/class-flowmattic-workflow.php”,”line”:2769,”function”:”run”,”class”:”FlowMattic_Workflow”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-includes/class-wp-hook.php”,”line”:324,”function”:”execute”,”class”:”FlowMattic_Workflow”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-includes/class-wp-hook.php”,”line”:348,”function”:”apply_filters”,”class”:”WP_Hook”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-includes/plugin.php”,”line”:517,”function”:”do_action”,”class”:”WP_Hook”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-content/flowmattic-apps/fluent-forms/class-fluent-forms.php”,”line”:179,”function”:”do_action”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-includes/class-wp-hook.php”,”line”:324,”function”:”capture_fluent_forms_submission”,”class”:”FlowMattic_Fluent_Forms”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-includes/class-wp-hook.php”,”line”:348,”function”:”apply_filters”,”class”:”WP_Hook”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-includes/plugin.php”,”line”:517,”function”:”do_action”,”class”:”WP_Hook”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-content/plugins/fluentform/app/Services/Form/SubmissionHandlerService.php”,”line”:533,”function”:”do_action”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-content/plugins/fluentform/app/Services/Form/SubmissionHandlerService.php”,”line”:49,”function”:”insertSubmission”,”class”:”FluentForm\\App\\Services\\Form\\SubmissionHandlerService”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-content/plugins/fluentform/app/Modules/SubmissionHandler/SubmissionHandler.php”,”line”:25,”function”:”handleSubmission”,”class”:”FluentForm\\App\\Services\\Form\\SubmissionHandlerService”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-content/plugins/fluentform/app/Hooks/Ajax.php”,”line”:21,”function”:”submit”,”class”:”FluentForm\\App\\Modules\\SubmissionHandler\\SubmissionHandler”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-includes/class-wp-hook.php”,”line”:324,”function”:”{closure}”,”class”:”FluentForm\\Framework\\Foundation\\Application”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-includes/class-wp-hook.php”,”line”:348,”function”:”apply_filters”,”class”:”WP_Hook”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-includes/plugin.php”,”line”:517,”function”:”do_action”,”class”:”WP_Hook”,”type”:”->”},{“file”:”/var/www/inkontaktbringer.de/htdocs/wp-admin/admin-ajax.php”,”line”:192,”function”:”do_action”}]}}×Continue reading
document.addEventListener(‘om.Campaign.startShow’, function(event) { if(document.referrer.search.indexOf(‘google.com’) > 0) { // replace with the specific referral domain var optinCampaign = document.querySelector(‘#om-CAMPAIGN_ID’); // replace CAMPAIGN_ID with the unique ID for your campaign optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading
document.addEventListener(‘om.Campaign.startShow’, function(event) { if(window.location.search.indexOf(‘shopping-cart’) > -1) { // replace shopping-cart wtih your specific URL path var optinCampaign = document.querySelector(‘#om-CAMPAIGN_ID’); // replace CAMPAIGN_ID with the unique ID of your campaign optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading
document.addEventListener(‘om.Campaign.startShow’, function(event) { if(window.location.href == ‘https://example.com/specific-page’) { // replace with your specific URL var optinCampaign = document.querySelector(‘#om-CAMPAIGN_ID’); // replace CAMPAIGN_ID with your campaign’s unique ID optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading
document.addEventListener(‘om.Campaign.startShow’, function(event) { if(window.location.href == ‘https://example.com/specific-page’) { // replace with your specific URL var optinCampaign = document.querySelector(‘#om-‘ + event.detail.Campaign.id); optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading
/** * Output scripts and styles for the favourites button in the head. */ function wwof_output_favourites_scripts() { // Only load on single product pages. if ( ! is_product() ) { return; } // Get current user ID. $user_id = get_current_user_id();…Continue reading
/* * Use the shortcode [deliver_to_address] wherever you want the address to appear (e.g., header, sidebar, pages). * Author: Muhammad Mubeen A (wp_expert28) * */ // Shortcode to display “Deliver to:” widget with address edit popup add_shortcode(‘deliver_to_address’, function () {…Continue reading
// Disable wp-embed.min.js function my_deregister_scripts(){ wp_dequeue_script( ‘wp-embed’ ); } add_action( ‘wp_footer’, ‘my_deregister_scripts’ );Continue reading
function year_shortcode() { $year = date_i18n (‘Y’); return $year; } // register shortcode add_shortcode(‘year’, ‘year_shortcode’);Continue reading