Wes
Forum Replies Created
-
I solved this problem by refreshing my permalinks.
Go to Admin > Settings > Permalinks and click “Save”
Hope it helps!
-Wes
Forum: Fixing WordPress
In reply to: Illegal Offset Type when using wp_schedule_eventThat is EXACTLY the problem! Hopefully this post will help someone else!
This needs to be fixed in the next version of WP though, for sure.
Forum: Fixing WordPress
In reply to: Illegal Offset Type when using wp_schedule_eventCould it be that I’m putting an array in place of the (string) $hook?
In most functions, you can add array(&$this, ‘function_name’) in place of the hook to call a function from the same class. However, the schedule functions specifically call for a “string” instead of a string|array.
I bet this is the problem. I’ll try it now and come back with an answer if it’s working.
Forum: Fixing WordPress
In reply to: How to remove theme editor submenu?No problem, glad to help. Be sure to mark this post as “solved” so it can help others with this problem.
Forum: Fixing WordPress
In reply to: How to remove theme editor submenu?You need to call that action in admin_init, not admin_menu
So:
add_action('admin_init', 'my_remove_menu_elements', 102); function my_remove_menu_elements() { remove_submenu_page( 'themes.php', 'theme-editor.php' ); }🙂
Forum: Plugins
In reply to: Upload image via URL with codeBump. Anyone?